How Do I Stop A Bullet Sprite From Rotating?

Get help using Construct 2

Post » Tue Feb 12, 2013 11:58 pm

How Do I Stop A Bullet Sprite From Rotating?

Hi,

I am making an Asteroids remake with "Construct 2".
I've setup the Asteroid sprites as bullets.
When the player's laser bullet hits an asteroid it goes in the opposite direction.
The problem is the Asteroid sprite's rotation also changes and I do not want this.

How would I stop a bullet sprite's rotation from changing when it changes movement direction?
Thanks!

JeZ+Lee
B
11
S
3
G
4
Posts: 105
Reputation: 2,950

Post » Wed Feb 13, 2013 12:14 am

If you post a link to a sample CAPX file we may be able to help a bit quicker...
B
49
S
11
G
10
Posts: 1,833
Reputation: 14,418

Post » Wed Feb 13, 2013 12:19 am

[QUOTE=BluePhaze] If you post a link to a sample CAPX file we may be able to help a bit quicker...[/QUOTE]Hi,

I can't post link URL's yet(not enough Reputation points)...
I've tried to get the required 500 Reputation points but it's impossible!
Sorry...

JeZ+Lee
B
11
S
3
G
4
Posts: 105
Reputation: 2,950

Post » Wed Feb 13, 2013 12:35 am

Ok, finally reached 500 Reputation points...

Here is a URL link to my current "Construct 2" game project:
http://16bitsoft.com/V2/Files/RocksInSpace/Alpha2/RocksInSpace_A2.capx

Hope someone can help, thanks!

JeZ+Lee
B
11
S
3
G
4
Posts: 105
Reputation: 2,950

Post » Wed Feb 13, 2013 12:14 pm

Hi
Maybe you should use phisycs behavior? just apply it to your asteroid and add some actions - look at screenshot https://www.dropbox.com/s/b1ar45qm2j6v7bh/screen.jpg
one problem - Wrap behavior doesn't work...
B
21
S
4
Posts: 29
Reputation: 1,253

Post » Wed Feb 13, 2013 2:44 pm

[QUOTE=GT88] Hi
Maybe you should use phisycs behavior? just apply it to your asteroid and add some actions - look at screenshot https://www.dropbox.com/s/b1ar45qm2j6v7bh/screen.jpg
one problem - Wrap behavior doesn't work...[/QUOTE]Hi,

Wrap behavior is necessary for this Asteroids remake.

Anyone else have any ideas on how to stop a bullet sprite
from changing rotation when it changes movement direction?

Thanks!

JeZ+Lee
B
11
S
3
G
4
Posts: 105
Reputation: 2,950

Post » Wed Feb 13, 2013 5:36 pm

Look at the properties of the bullet behavior for your asteroid. Try using "Set angle" to no.
B
45
S
16
G
18
Posts: 845
Reputation: 13,673

Post » Wed Feb 13, 2013 7:54 pm

[QUOTE=Magistross] Look at the properties of the bullet behavior for your asteroid. Try using "Set angle" to no.[/QUOTE]Hi,

Funny, I don't need this now, but thanks for pointing it out to us!
Now when an asteroid is hit by player laser I display an explosion
on top of the hit asteroid so it looks good.

JeZ+Lee
B
11
S
3
G
4
Posts: 105
Reputation: 2,950


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 18 guests