Hi I have a student who is attempting to make a rotating maze game. So far to no avail as we cannot get the maze to rotate! Here is what we have done so far:
Tried using a single sprite as the maze, then editing the collision masks to only cover the outside square wall and internal walls - the result is however the player sprite always spawns outside of the sprite and falls away.
Tried editing a gap into the collision mask - the result is the player sinks halfway in but will not ‘enter’ the sprite
Tried making the maze from multiple blocks and childing them to a single transparent parent block in the centre - the result is all instances spin on their own centre/pivot point but will not rotate around the central block. We have been at this for a few hours now but running out of ideas, has anyone achieved something like this? Thanks very much
Can you post a pic of the maze? I’m having a hard time picturing it. Does it use the physics behavior for the walls? Does the player walk through the maze or is it more like a gravity based puzzle game with a ball or something?
Sticking the objects to a hidden object that gets rotated seems like a good approach. For physics, you could create weld joints. For non-physics there’s a sticker behavior.
Hold RMB for spin to win
Press Tilde (button above tab or below escape or left from 1) to reset scene
WASD + space to move/jump
Press F13 for instant regret
Don’t make it all one sprite unless you are going through and custom making the collision box. Instead put all parts of the maze into a group and rotate the whole group. That should rotate them properly. (I think)
To clarify
In 2nd event you can see i am adding 1 to angle of platforms and 1 to angle var of platforms
You need to add SAME value to variable as you are adding to platforms angle
Cause you are adding SAME value to their angle between GroundTIle2 which is their pivot point
Imagine it like clock arms
IF you are only adding 1 to variable you will get this
That is why you also need to add 1 to angle of platforms themselves