Firing direction

Get help using Construct 2

Post » Fri Aug 31, 2012 3:02 pm

Hello people
I have a basic problem I think, I am creating a shooter type the binding of isaac, but I can not steer the player to shoot in the direction of the PG is looking
the bullet always starts at the right, as possible send it in the direction that is looking the character?
Sorry my bad english
B
3
Posts: 2
Reputation: 279

Post » Fri Aug 31, 2012 5:25 pm

Your character must be rotating (changing it's angle)
Your bullet must have Set Angle ON.

EDIT: You could create a global variable called Direction. When the player moves in that direction, set the Direction variable to "Up"/"Down"/"Left"/"Right" and you can then check what "Direction" is set to and create a bullet with the correct angle!Rory2012-08-31 17:28:21
B
36
S
10
G
6
Posts: 948
Reputation: 11,101


Return to How do I....?

Who is online

Users browsing this forum: DemantDigitalArt, Lancifer and 29 guests