Jump to content


gIonescu

Member Since 17 Apr 2012
Offline Last Active May 20 2012 02:49 AM

Topics I've Started

if else statement don't work

03 May 2012 - 01:54 PM

All i'm trying to do is not let the player switch rooms in collision with the door, if he doesn't have the key:

if obj_controller_key.key_collected=1; 
switch room
{
case level1:
room_goto(menu);
global.dot2_sprite=spr_star;
}
else
{
show_message("Key? Where's The Key? Get Back There!");
}

At "else" is saying 'Unexpected Symbol in expression'

i dnt want my player to leave the room if he doesn't have a key.

if i take else out and the if statement at the top it works as expected

Sprite changing

19 April 2012 - 04:01 AM

e.g.
in room1 i placed an obj_dot and in room2 when obj_player collides with obj_door i want obj_dot to change its sprite.

how to transfer to another room

17 April 2012 - 04:01 PM

and also how to change a sprite from room1 if ur in collision to an object in room 2?

variables

17 April 2012 - 12:00 PM

Basically what I wanna do is a simple platform game.

And i've been struggling with 1 simple thing.

When player_1 hits chest then i want a gem to appear on top of that chest.

But i have 6 chests on this level. and i'm stuck :(
and i also have different coloured gems.