8 Direction Behaviour

Get help using Construct 2

Post » Wed Oct 05, 2016 8:25 am

Guys,

I added the 8 direction behaviour to my player sprite, by default it is disabled. After entering the game and enable the behaviour, my player sprite automatically rotate 90 degree to the left, why will it rotate automatically? All i did was just enabling the behaviour, help please...

Thanks.
B
48
S
20
G
6
Posts: 71
Reputation: 6,470

Post » Wed Oct 05, 2016 8:31 am

Try disabling set angle.
Zelda Gamekit (my project)



Example capxs:

Zelda-Style Inventory

Zelda Health

3-saveslot system

[url=https://www.dropbox.com/s/d4396pwak0oh7q6/ZeldaDialogueSystem.capx?dl=0]Zelda-like Dialogue[
B
47
S
24
G
30
Posts: 517
Reputation: 19,464

Post » Wed Oct 05, 2016 8:40 am

Hi @LaDestitute, it works! I'm actually trying wherever i touch the screen, my player sprite would remain at its position and look at that direction, therefore I tried using set angle toward position (Touch.X, Touch.Y). Since it does not work, do you know any other way I can do it?

Thanks!!
Last edited by johnkx on Wed Oct 05, 2016 9:06 am, edited 1 time in total.
B
48
S
20
G
6
Posts: 71
Reputation: 6,470

Post » Wed Oct 05, 2016 9:02 am

Related to your other topic.
It sounds like you are not using the Mouse object in your project, and so in the end are instructing your sprite to face the (0,0) direction right away and always.

Again, you mention "Touch" (Touch object ?) if so use (Touch.X, Touch.Y) to get an actual set of coordinates to rotate towards.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
284
S
109
G
91
Posts: 7,317
Reputation: 87,483


Return to How do I....?

Who is online

Users browsing this forum: Lancifer and 5 guests