Move sprite to player without changing it's angle

Get help using Construct 2

Post » Tue Jan 29, 2013 10:15 am

Hi all

New here, loving C2 so far and very close to buying already - looks like a nice active community.

I've been making a simple dungeon shooter, and the enemies are set to "angle towards player" and "move forwards" every frame.

It's pretty much exactly what I need in terms of making the enemies move, but I'd like to know how to do this without C2 drawing the enemy at it's new angle, i.e. I always want the sprite drawing at default rotation.



B
20
S
6
G
2
Posts: 157
Reputation: 3,109

Post » Tue Jan 29, 2013 10:16 am

Or, if there's a completely different way of making the enemy move that's cool too.

Thanks :)
B
20
S
6
G
2
Posts: 157
Reputation: 3,109

Post » Tue Jan 29, 2013 10:25 am

I'd add bullet behavior for the enemies and change 'angle of motion' to achieve that. Also replace 'move forwards' with bullets speed. Just be sure to turn off bullet behaviors 'set to angle' in properties of the enemy objects :)
B
24
S
8
G
7
Posts: 756
Reputation: 7,192

Post » Tue Jan 29, 2013 11:00 am

Move at Angle angle(self.X,self.Y,player.X,player.Y)
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Tue Jan 29, 2013 11:03 am

I'll explore these options when I get home, many thanks :)
B
20
S
6
G
2
Posts: 157
Reputation: 3,109


Return to How do I....?

Who is online

Users browsing this forum: christina and 6 guests