GameMaker: Studio

GameMaker: Studio

Statistiche:
does any one else have this problen with script
i coped this, it worked on GM8 now it does not in GMS and not just this script but i keep finding stuff that does not work for no good reason


if place_meeting(x,y,obj_player) and if room=room_1
(
room_goto(house_1)
)

if place_meeting(x,y,obj_player) and if room=house_1
(
room_goto(room_1)
)
Ultima modifica da N.o.B.; 9 nov 2012, ore 16:09
< >
Visualizzazione di 1-6 commenti su 6
Looks like you're second nested statement says "rm_1", maybe you meant to have it say "room_1" like in your first statement, or maybe the other way around, since I don't know what you've named your assets.

Overall, it looks like it would work if it was running on the step event. Sometimes importing code would fail on me too, so what I would do is copy and paste it over again and then it worked. xD

no i saw that after i posted and fixed it i have also typed it out and still
This should work, if this is the result you are looking for anyway. It might also help to know where are you placing this script. Step? Collission? Key press?

if (place_meeting(x,y,obj_player) && room == room_1)
{
room_goto(house_1);
}

else if (place_meeting(x,y,obj_player) && room == house_1)
{
room_goto(room_1);
}
Ultima modifica da GproKaru; 14 nov 2012, ore 16:34
its a key press
if (place_meeting(x,y,obj_player) && room == room_1)
room_goto(house_1);

if (place_meeting(x,y,obj_player) && room == house_1)
room_goto(room_1);

This will work for you.
I'll try it out. Thanks
< >
Visualizzazione di 1-6 commenti su 6
Per pagina: 1530 50

Data di pubblicazione: 9 nov 2012, ore 15:49
Messaggi: 6