compass

Get help using Construct 2

Post » Fri Apr 14, 2017 7:15 am

Hi guys im making an rpg and in the quest dialogue it says go west so i was wondering how to have a compass sprite that actually works that will point in the direction the player is going. :)
Image
B
31
S
16
G
12
Posts: 318
Reputation: 9,854

Post » Fri Apr 14, 2017 8:06 am

Are you rotating the layer/layout ?
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Fri Apr 14, 2017 9:19 am

no
Image
B
31
S
16
G
12
Posts: 318
Reputation: 9,854

Post » Fri Apr 14, 2017 9:27 am

Hard to tell without knowing what system you're using for movement.
Are you using 8 direction to move your player? Bullet?

I'm working with your description of "compass sprite that actually works that will point in the direction the player is going."

In either case, just create your compass arrow sprite, anchor it to your viewport and set angle to where player is moving.

But if you want it to point to the direction of where your player HAS to go then simply create a sprite, whether it be a doorway or a colorless box indicating the next transition point of your map in which case you would set your compass.angle to that said point.
Image Image Image
B
32
S
12
G
27
Posts: 761
Reputation: 17,246

Post » Fri Apr 14, 2017 9:49 am

thank you I'm currently using 8 direction for my players movement and then I'm going to pin the arrow of the compass to the middle of the compass and then set it every tick set angle to player x player y
Image
B
31
S
16
G
12
Posts: 318
Reputation: 9,854

Post » Fri Apr 14, 2017 11:07 am

Should work, if you only pin position (not angle). Else the pin will overturn.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 32 guests