I want to make a war game but I want to play animation while other is playing

Example : player is running and when I press mouse click I want to stop run animation and run shooting animation ?? how to do that plz. !! and thanks

celstrider wrote:after making both animations and adding a mouse object:
go to event sheet
add new event : on any mouse click
add action : playersprite set animation "whatever you named your running animation"
celstrider wrote:keyboard D key is down >> simulate platform pressing right
on d pressed >> player set animation "walk"[looping]
on mouse click >> player set animation "attack"[not looping]
player on animation "attack" finished >> player set animation "walk"
if you want the player to stop moving when the attack substitute:
keyboard D key is down >> simulate platform pressing right
with:
keyboard D key is down, and animation "walk" is playing[or animation "attack" is not playing] >> simulate platform pressing right
Return to Game Development, Design & Ideas
Who is online |
Users browsing this forum: sofialogan101 and 0 guests |