Question about limits...
goliath
Member Posts: 1,440
Hello everyone. My game Spacescape is undergoing some changes and I need your help! First off the title is going completely tilt control (thank you Scitunes) but I am having an issue when the ship gets close to the edges of the screen.
Right now when the ship gets near any edge of the screen (goes off screen) the ship respawns in the center of the screen. I want it to either a) when it gets near the edge of the screen not go off screen or b) maybe bounce off the edge of the screen so it doesn't fly off screen.
i hope i am making myself clear on this (it's early in the morning and I am not feeling very articulate for some reason).
My idea was to create 4 invisible walls around the perimeter of the screen to keep it confined to the format....
Any ideas would be appreciated..
Right now when the ship gets near any edge of the screen (goes off screen) the ship respawns in the center of the screen. I want it to either a) when it gets near the edge of the screen not go off screen or b) maybe bounce off the edge of the screen so it doesn't fly off screen.
i hope i am making myself clear on this (it's early in the morning and I am not feeling very articulate for some reason).
My idea was to create 4 invisible walls around the perimeter of the screen to keep it confined to the format....
Any ideas would be appreciated..
Comments