Making an aiming target revolve around player

For questions about using Classic.

Post » Sun Sep 19, 2010 2:59 am

Hey guys,

I'm making a side scrolling game where I can throw a projectile but I can aim using a crosshair that revolves around player (i.e.: Yoshi Story from Snes).

How would I go about putting something like that together in Construct?

Thank You
B
6
S
1
G
2
Posts: 6
Reputation: 887

Post » Sun Sep 19, 2010 3:45 am

Pretty sure something like this

always:
-> set target X to player.X + cos(aimangle) * distance from player
-> set target Y to player.Y + sin(aimangle) * distance from player

I -think- this is what you're looking for, been a while since I used anything like this though
B
3
S
2
G
5
Posts: 351
Reputation: 2,377


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests