when i spawn bullet problems, pleeaaase helppppp...less time

Get help using Construct 2

Post » Sat Sep 19, 2015 6:57 pm

hey theere. i am working on a platformer game. when i spawn bullet it goes to right. but when i am facing left. it should go left.. how do i do this... help pleasee. i have to submit this game tonight in 6 hours.
B
5
S
1
Posts: 49
Reputation: 455

Post » Sat Sep 19, 2015 7:02 pm

spawn the bullet and then add another action that rotates the bullet 180 degrees, for example, or spawn and set the angle to the desired one
B
21
S
8
G
4
Posts: 66
Reputation: 3,650

Post » Sat Sep 19, 2015 7:09 pm

if i am facing right it should do right. if i am facing left it should go left...
this is what i want...
B
5
S
1
Posts: 49
Reputation: 455

Post » Sat Sep 19, 2015 7:20 pm

If your bullet has bullet-behavior and you spawn your bullet at an imagepoint of your sprite, the bullet should fly in the direction your sprite is facing. You can see this in Ghost Shooter Example.
B
24
S
3
G
1
Posts: 451
Reputation: 2,165

Post » Sat Sep 19, 2015 7:21 pm

Like @Vaank tried to explain:


You probably have an event where you spawn the bullet..
In that event add a subevent to check if the player is facing left..
To that subevent add the action rotate bullet 180 degrees..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sat Sep 19, 2015 7:27 pm

by facing left meaans.. mirrored ??
B
5
S
1
Posts: 49
Reputation: 455

Post » Sat Sep 19, 2015 8:44 pm

CodeArtOnline wrote:by facing left meaans.. mirrored ??


If you're using "mirrored" and "not mirrored" for your player you should do the same with your bullet.

Just set up your Bullet like this:

[Event] On Bullet Create
[Event] If Player is Mirrored
[Action] Set Bullet Mirrored
B
9
S
1
Posts: 50
Reputation: 646


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 4 guests