A Little Help with Rotating Sprites Please.

Discussion and feedback on Construct 2

Post » Wed Dec 11, 2013 6:55 pm

Hey,
So I feel really dumb. I've scoured the forum, looked at capx's and done everything I can think of. I can get my monsters to do everything I need. Use line of sight, path finding, use bullet behavior all when and as I want them to. I just can't get the monster sprites, not the player, to stop rotating. They are rotating and moving toward Player.X and Player.Y. rotating toward the player as the player changes position. I've been putting off asking for help figuring I would just figure it out or stumble across the answer for the past week. Now after 3 hours of adding and messing with behaviors and conditions I'm whooped. I'm sure it's something simple?
Please help. Love the tilemap update.
Thanks.
d.
B
6
S
1
Posts: 1
Reputation: 356

Post » Fri Dec 13, 2013 11:00 am

[QUOTE=davicide994] Hey,
So I feel really dumb. I've scoured the forum, looked at capx's and done everything I can think of. I can get my monsters to do everything I need. Use line of sight, path finding, use bullet behavior all when and as I want them to. I just can't get the monster sprites, not the player, to stop rotating. They are rotating and moving toward Player.X and Player.Y. rotating toward the player as the player changes position. I've been putting off asking for help figuring I would just figure it out or stumble across the answer for the past week. Now after 3 hours of adding and messing with behaviors and conditions I'm whooped. I'm sure it's something simple?
Please help. Love the tilemap update.
Thanks.
d.[/QUOTE]

can you explain better what are you triying to do??

how its your game?? platforming or 8 direction top view game?? i will se how i can help :)
B
23
S
6
G
3
Posts: 316
Reputation: 3,461

Post » Fri Dec 13, 2013 6:03 pm

I'm going to bet you built your game off of a top down shooter template. And that template has

EveryTick
Monster.angle = angle(player.x, player.y, monster.x, monster.y)

B
90
S
18
G
9
Posts: 2,455
Reputation: 15,028


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 22 guests