how i do sprite shoot in the right way.

Get help using Construct 2

Post » Mon Jun 06, 2016 11:18 pm

I use left and right arrow on keyboard to control sprite direction I want when sprite turns right it shoot right by left click on mouse and when it turns left so shoot left by the same way is left click on mouse. Now i only can shoot one direction. it not consistency how should I do. thank you
B
7
S
3
Posts: 14
Reputation: 607

Post » Mon Jun 06, 2016 11:24 pm

You could make add an boolean instance variable to player like "looksRight" - or if animation is mirrored
Now if you walk left you set the boolean to false
if walks right then true
and depending if true or false you can set the angle of the bullet.

  • System > On start of layout | system > load game from slot "brain"
  • System > On load failed | system > scroll to obj_Forum
B
17
S
8
G
5
Posts: 340
Reputation: 4,707


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 25 guests