HOW TO CHANGE BULLET DIRECTION????

For questions about using Classic.

Post » Wed Mar 02, 2011 9:23 pm

So...i am making a platform game, and when i spawn a bullet, it goes to right! Does anybody knows how to set bullet's direction to left???
B
12
S
2
G
1
Posts: 4
Reputation: 1,069

Post » Wed Mar 02, 2011 9:35 pm

set sprite angle to 180
this is a sprite action, not a bullet action
choose an angle it flies in that direction
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Wed Mar 02, 2011 10:18 pm

I don't really understand.....Can you tell me what first to do??? Example: New event->player...action->set angle??????
B
12
S
2
G
1
Posts: 4
Reputation: 1,069

Post » Wed Mar 02, 2011 10:36 pm

yeah,

insert new event/condition
system-always
---------sprite-set angle

would be a good way to test it

also:
viewtopic.php?f=3&t=2272
do the ghost shooter tutorial
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Thu Mar 03, 2011 8:16 am

Thanx for help, but its not what i need, i want to shot the bullet to the right when i am going to right (or just standing), and to shot to the left when i am going to left!!!!???? :)
B
12
S
2
G
1
Posts: 4
Reputation: 1,069

Post » Thu Mar 03, 2011 3:41 pm

That's why you have a condition say something like "check player angle"

-If control "shoot" is pressed
-If player angle = 0
---spawn bullet at image point "bulletspawn"
---Set bullet angle to 0


-If control "shoot" is pressed
-If player angle = 180
---spawn bullet at image point "bulletspawn"
---Set bullet angle to 180



Really, all this stuff is covered in the "Ghost Shooter Tutorial". Look it up on scirra.com's tutorial page, and trust me, you'd learn a lot from it.
Check out my VGM on my soundcloud page!
Video-Game Music: E.C.2151
B
7
S
2
G
2
Posts: 193
Reputation: 1,561


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 6 guests