MaicMan Posted February 21, 2011 Author Share Posted February 21, 2011 Hey I'm not that great at programming but in the graphics tutorial it mentioned changing the sprite animation…. I was wonderin wat to do if I want to add like an attack animation or like ridding a bike or somethin like that. Link to comment Share on other sites More sharing options...
Guest Posted February 21, 2011 Share Posted February 21, 2011 Riding a bike as an attack? Hm wierd. If you wanted to do something like that, Id make it a spell. BUTT, if you want it as the default attack, put the sprite riding a bike where the attack frame is. Link to comment Share on other sites More sharing options...
iSKweek Posted February 21, 2011 Share Posted February 21, 2011 He doesn't want to attack as a bike >.> lolTo change the sprite to riding a bike just add a new spritesheet for ti and call the sub that sets the sprite. The do the opposite to go back to the walking sprite.For teh attack animation, I am not quite sure how melee animations are used in EO, sorry. Link to comment Share on other sites More sharing options...
MaicMan Posted February 21, 2011 Author Share Posted February 21, 2011 haha yeah i was just using a bike as a separate example to attacking and thx @iSkweek but i knew tht much. I just dont know how exactly to do tht. Like where it is in the code or what exactly to write Link to comment Share on other sites More sharing options...
Broojo02 Posted February 22, 2011 Share Posted February 22, 2011 Client side, in```Public Sub BltPlayer(ByVal Index As Long)```Find the bit saying```' Check for attacking animation If Player(Index).AttackTimer + (attackspeed / 2) > GetTickCount Then If Player(Index).Attacking = 1 Then Anim = 2 End If Else```There you can do stuff like change which sprite is shown or make it show an animation instead, maybe even play a sound :) Link to comment Share on other sites More sharing options...
da_gad_pader Posted May 25, 2011 Share Posted May 25, 2011 i got a fix from that , pm me if u need Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now