Blank screen with text showing some credits
>Clickable actor: Moon
- Code: Select all
If the left mouse button is clicked on, the actor "view" will move to (-400, -960) with velocity 5 relative to Game Centre avoiding none.
- Code: Select all
If the left mouse button is clicked on, the actor "Moon" will have all events disabled.
>Controllable actor: view
- Code: Select all
When move is finish, do the following in script mode:
activate_options = 1;
option = 1;
ChangeTransparency("tall_tree", 0.500000);
ChangeTransparency("new_game_text", 0.500000);
EventDisable("view", EVENTALL);
>Status: Actions up to this point are carried out successfully
>Note: The variables are GLOBAL INTEGERS.
Blank screen with several actors
>Controllable actors: tall_tree, new_game_text
- Code: Select all
Key Down (Left):
if((activate_options == 1) && (option == 1))
{
ChangeTransparency("tall_tree", 0.000000);
ChangeTransparency("new_game_text", 0.000000);
ChangeTransparency("quit", 0.000000);
ChangeTransparency("quit_text", 0.000000);
option = 3;
};
- Code: Select all
Key Down (Right):
if((activate_options == 1) && (option == 1))
{
ChangeTransparency("tall_tree", 0.000000);
ChangeTransparency("new_game_text", 0.000000);
ChangeTransparency("continue_game", 0.500000);
ChangeTransparency("continue_game_text", 0.500000);
option = 2;
};
>Controllable actors: continue_game, continue_game_text
- Code: Select all
Key Down (Left):
if((activate_options == 1) && (option == 2))
{
ChangeTransparency("tall_tree", 0.500000);
ChangeTransparency("new_game_text", 0.500000);
ChangeTransparency("continue_game", 0.000000);
ChangeTransparency("continue_game_text", 0.000000);
option = 1;
};
- Code: Select all
Key Down (Right):
if((activate_options == 1) && (option == 2))
{
ChangeTransparency("continue_game", 0.000000);
ChangeTransparency("continue_game_text", 0.000000);
ChangeTransparency("quit", 0.500000);
ChangeTransparency("quit_text", 0.500000);
option = 3;
};
>Controllable actors: quit, quit_text
- Code: Select all
if((activate_options == 1) && (option == 3))
{
ChangeTransparency("quit", 0.000000);
ChangeTransparency("quit_text", 0.000000);
ChangeTransparency("continue_game", 0.500000);
ChangeTransparency("continue_game_text", 0.500000);
option = 2;
};
- Code: Select all
Key Down (Right):
if((activate_options == 1) && (option == 3))
{
ChangeTransparency("quit", 0.000000);
ChangeTransparency("quit_text", 0.000000);
ChangeTransparency("tall_tree", 0.500000);
ChangeTransparency("new_game_text", 0.500000);
option = 1;
};
All the key down functions have the following parameters:
- Code: Select all
Execute when: At least one key is pressed
Repeat: Enable
And when an actor is selected its transparency is 0.5.
My problem begins with switching between the actors. It's very jerky, and for some reason the continue_game and continue_game_actors are skipped and I can't move left to select the quit actor. I checked my code over and over, but I can't see a bug. Does anyone know what's wrong?