Recreating SNES Mode7 in layer rotation

Get help using Construct 2

Post » Wed Dec 04, 2013 3:03 am

I want to create a camera perspective where the character is centered in the screen (using the ScrollTo behavior) and always faces a certain direction (270 degress). As he turns and moves around (using the 8Direction behavior), the layer, itself rotates. In comparison this is very similar to Mode7 rotation on the Super Nintendo.

Does anyone have any suggestions?

The trick I'm having is how to isolate the difference between the angle of the character and the layer while maintaining a constant angle value of the character. My first attempt ended up rotating the entire layer so much that it looked like a kaleidoscope doped up on Red Bull.
I'm seeking Narnia. Who wants to come with me! Aslan is on the move!
B
139
S
22
G
8
Posts: 777
Reputation: 14,830

Post » Wed Dec 04, 2013 8:01 pm

Wouldn't setting the layer's angle to the player's angle work?
B
92
S
32
G
107
Posts: 5,274
Reputation: 69,959

Post » Thu Dec 05, 2013 5:45 am

@R0J0hound - Actually, after a few attempts, I got it nearly right! There's just a tweak or two that are a little off...

https://www.sugarsync.com/pf/D6025908_4317202_6006503

1 and 2 to switch view types. Arrow keys to move.
Shift key to move backwards in view 1.Rhindon2013-12-05 05:46:15
I'm seeking Narnia. Who wants to come with me! Aslan is on the move!
B
139
S
22
G
8
Posts: 777
Reputation: 14,830


Return to How do I....?

Who is online

Users browsing this forum: htmlgames and 13 guests