Hi there,
as some of you already helped me in another thread with more basic questions, you may already know my game. The jumping and tile collision now works pretty much (some collision bugs that need to be terminated are still going on) and I'm ready to advance:
The game is a simple puzzle-platformer (inspired by VVVVV) and consists of two player-controlled characters. As soon as one of them hits a switch in the level, I want the following two things to happen:
1. Color palette swap
I want to have the whole level to kinda get a "different lightning". For that I created different colored tiles and character models. The level background should probably change too, if this is possible. I read about using custom backgrounds (which would be no problem since it's a single color anyway), which would open the possibility to just create two different colored ones and make them swap by event, I still don't know how to do that yet, however.
The tiles seem to be more of a problem since I couldn't find a tile swap command in the script editor. Concerning the color of the characters changing I have an idea which I will explain in the second event for hitting the switch:
2. Gravity switch
When ONE character hits a switch, I want them to BOTH change the gravity to upwards/downwards. Simply changing the velocity would be an option. Since I however also want them to change their color, I thought about completely destroying the actor and replacing it by another one at the same position (Means you got two "green" characters with normal gravity and two "red" ones with reversed gravity) whenever a switch is hit. Would this be a good solution and what would be the commands to achieve that? (Another problem I'll probably encounter will affect that the freshly spawned "upside down" character instantly hits the switch again and reverses the event, but one problem after the other I guess).
Thanks for the great help I got already!
BS87