how to play animation while other is playing ??

Discuss game development design and post your game ideas

Post » Fri May 19, 2017 10:47 am

Hello I'm new here !!
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 :D
B
2
Posts: 3
Reputation: 156

Post » Fri May 19, 2017 11:59 pm

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"
B
25
S
16
G
26
Posts: 125
Reputation: 16,103

Post » Sat May 20, 2017 1:24 pm

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"


No, I mean when I press a key like "D" the player will walk .
But if the player is walking or running( "D" key is down ) and I press mouse click i want to stop the running animation and play the shoot animation :D
B
2
Posts: 3
Reputation: 156

Post » Sat May 20, 2017 6:38 pm

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
B
25
S
16
G
26
Posts: 125
Reputation: 16,103

Post » Sun May 21, 2017 1:47 pm

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


Its look god way thank U dear :D
B
2
Posts: 3
Reputation: 156


Return to Game Development, Design & Ideas

Who is online

Users browsing this forum: No registered users and 0 guests