well, i'm trying to make a multiplayer battle game, and i have player 1 and player 2, and 2 charectors. I want to make a third and fourth charector, but I don't know how to make a "choice" script.
Offline
Currently, the game (very cool btw) goes straight into battle.
You need to make a startup screen where the player sees what robot is currently picked and then presses keys to cycle through options (costumes.)
I would suggest disabling player controls until the fight actually begins.
For example, I often use a variable called State or something similar. It starts at Initialize, then goes through Startup, Playing, and finally Over. Then I can do things like only allow controls to work if State = Playing, change my background according to whatever State equals, display scores and highscore if State = Over, etc.
Offline
Thanks, that perfect.
Offline
how do I make the basic choosinbg script?
Offline
You could just have the player push a number key, and then set the character to that number. For example,
When I receive [character select] set character to 0 repeat until not(character = 0) if key 1 pressed set character to 1 EndIf if key 2 pressed set character to 2 EndIf if key 3 pressed set character to 3 EndIf if key 4 pressed set character to 4 EndIf EndLoop broadcast [start game]
Offline