J
josh jones
Guest
Hi I am creating a game called colour twist.
The game concepts consist of going through different portals to change colour to pass through the end portal, which takes you to the next level. Simples. I managed that easily.
However I wanted to add more difficulty and tried to add a boundary, for example if the player sprite is red then it can pass through the RED gate, but if its blue or green or yellow then it cannot. Is there anyone who can help.
I essentially need ...
I put this code in the RED boundary colliion code with the player
...
if(sPlayerBlue || sPlayerRed) [then I dont know what to put next] ?? what could I put to make the RED bondary solid for other colours.
The game concepts consist of going through different portals to change colour to pass through the end portal, which takes you to the next level. Simples. I managed that easily.
However I wanted to add more difficulty and tried to add a boundary, for example if the player sprite is red then it can pass through the RED gate, but if its blue or green or yellow then it cannot. Is there anyone who can help.
I essentially need ...
I put this code in the RED boundary colliion code with the player
...
if(sPlayerBlue || sPlayerRed) [then I dont know what to put next] ?? what could I put to make the RED bondary solid for other colours.