shooting Control

Get help using Construct 2

Post » Tue Jan 03, 2012 9:34 pm

hi, can some one help me please.
i made a small game and Run Jump all ok,
but Right arrow + Z button Running and can shoot. if i click left arrow + Z button olsoshoot le right side
i want to shoot ledt side if i click left arrow with shoot button

please help me, i uploaded capx file

http://www.mediafire.com/?pxc64ce5qvc3wez

thank you
B
3
G
2
Posts: 2
Reputation: 1,054

Post » Tue Jan 03, 2012 9:58 pm

here you go: http://dl.dropbox.com/u/44710358/gra.capx
B
93
S
19
G
34
Posts: 1,840
Reputation: 27,963

Post » Wed Jan 04, 2012 11:09 am

thank you
B
3
G
2
Posts: 2
Reputation: 1,054

Post » Mon Apr 02, 2012 5:33 pm

Oh man, this thread saved my butt. Thank you delgado! (sorry for reviving this thread. I think it's very useful)

For those that cannot download it, the trick is to set a global variable for shooting on the left.

the global variable is set to 0. when character is facing left is set to 1.
Have a condition that states, when global variable is set to 0, projectile is shooting to the regular right. when global variable is set to 1, have projectile set to 180 degrees, and it shoots on left when character is facing left.
B
23
S
3
G
2
Posts: 8
Reputation: 2,637


Return to How do I....?

Who is online

Users browsing this forum: Artpunk, Kagubro, Mirlas and 27 guests