Problem with sprite enemy

Get help using Construct 2

Post » Mon May 21, 2012 3:57 pm

Hello!
I have a problem with the movement of a sprite to be the enemy.
I made this sprite follow the player (behavior bullet + 8 directions moves+move to direction of move player) but c2 rotates the image of enemy and do not want, I want the static image.
Does anyone know how to do?
B
4
Posts: 10
Reputation: 395

Post » Mon May 21, 2012 4:35 pm

In the properties for the 8Direction behavior, set 'Set Angle' to 'no'. Also make sure 'Set Angle' is 'no' in all other behaviors that have this property.
Image
B
10
S
3
G
2
Posts: 196
Reputation: 2,053

Post » Mon May 21, 2012 5:44 pm

yes I have done this but still the same .... to chase the player 1 and make a turn the sprite rotation ..: (
B
4
Posts: 10
Reputation: 395

Post » Tue May 22, 2012 9:22 am

Hello,
I uploaded the game to dropbox.
Can anyone tell me how to make the ghost don't rotate to chase the player?
https://www.dropbox.com/s/klx11xrcd60ssyj/pacman.caproj

Thanks!
B
4
Posts: 10
Reputation: 395

Post » Tue May 22, 2012 10:15 am

This is the link of capx
https://www.dropbox.com/s/bf4vckein0tppes/pacman.capx
B
4
Posts: 10
Reputation: 395

Post » Tue May 22, 2012 7:09 pm

Your last event is the culprit:
Sprite2: Set Angle Toward (Sprite.X, Sprite.Y)

Replace the action with:
Sprite2: Set Bullet angle of motion to angle(Sprite2.X,Sprite2.Y, Sprite.X, Sprite.Y)

Image
B
10
S
3
G
2
Posts: 196
Reputation: 2,053

Post » Tue May 22, 2012 8:03 pm

thanks!
I have done differently and it worked.
With the plugin "move to" and the action set move to target position to sprite x,sprite y
after
move to target position to sprite
works!
B
4
Posts: 10
Reputation: 395


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 26 guests