streetlightbeny Nov 9, 2012 @ 3:49pm
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)
)
Last edited by streetlightbeny; Nov 9, 2012 @ 4:09pm
Showing 1-6 of 6 comments
< >
pxNeon Nov 9, 2012 @ 3:57pm 
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

streetlightbeny Nov 9, 2012 @ 4:01pm 
no i saw that after i posted and fixed it i have also typed it out and still
GproKaru Nov 9, 2012 @ 10:51pm 
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);
}
Last edited by GproKaru; Nov 14, 2012 @ 4:34pm
streetlightbeny Nov 12, 2012 @ 6:44pm 
its a key press
Darkrain Nov 14, 2012 @ 1:51pm 
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.
streetlightbeny Dec 4, 2012 @ 9:12pm 
I'll try it out. Thanks
Showing 1-6 of 6 comments
< >
Per page: 15 30 50
Date Posted: Nov 9, 2012 @ 3:49pm
Posts: 6