8Directions movement in relation to screen instead layer

Get help using Construct 2

Post » Mon Mar 07, 2016 9:02 pm

Hei there!

I am playing with C2 to create a small top-down shooter/rpg.
Nothing serious, just for fun. :)

Now I would like to accomplish this: to move my player (8Directions movement right now) in relation to the screen instead of the layer.
So, I would like to be able to rotate the layer, but still be able to move my player up/down/left/right on the screen.

Right now, when I rotate my game-layer by 45°, the player would move diagonal on the screen.


I don't have a clue how to start to manipulate the 8Directions movement.
Do you guys have any advice or idea?
B
3
Posts: 7
Reputation: 189

Post » Mon Mar 07, 2016 11:27 pm

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 » Tue Mar 08, 2016 6:52 pm

Nah does not give me a clue.

See at this picture.
The blue lines show the original movement, which is horizontal/vertical to the layout.
I would like to be able to move horizontal/vertical to the screen, even if the layout rotates.

Image
B
3
Posts: 7
Reputation: 189

Post » Tue Mar 08, 2016 7:28 pm

You could keep the player on a layer that doesn't rotate.
B
91
S
31
G
103
Posts: 5,235
Reputation: 67,756

Post » Tue Mar 08, 2016 7:34 pm

Hm, didn't think about that.
Then I would have to rotate all layers, exept the players layer.

Or maybe just the player layer and the layout as a whole. I'll try that!
Thanks for the idea. :)
B
3
Posts: 7
Reputation: 189


Return to How do I....?

Who is online

Users browsing this forum: FlyingRam, jkmalau, Manubis and 8 guests