Resources > Coding
[Request/Listing] Having trouble with new rooms...
xxbloodlustxx:
Okay, so I'm still working on a demo for my game, and I want to be able to go into houses and stuff, but I'm having just a bit of difficulty with making room transitions look nice. For example, how do you make the main character walk into a room and go to a certain position in that room, instead of where you started him off in that room before? BTW im using GM. Help would be much appreciated :)
OcarinaBoy:
do you mean a room to room engine?, i know that hyrule_boy or deku_stick have one try to ask them
MaJoRa:
--- Quote from: xxbloodlustxx on April 04, 2006, 04:52:04 pm ---Okay, so I'm still working on a demo for my game, and I want to be able to go into houses and stuff, but I'm having just a bit of difficulty with making room transitions look nice. For example, how do you make the main character walk into a room and go to a certain position in that room, instead of where you started him off in that room before? BTW im using GM. Help would be much appreciated :)
--- End quote ---
You are going about this all wrong. Make your characters object persistent. Have him only be created in one single room, and then when he moves room change the x and y of him, heres and example, for moving him when he hits the object that will make him move room:
Room = [yourroom];
obj[yourobject].x = [wherever];
obj[yourobject].y = [wherever];
Like that. Hope it helped.
xxbloodlustxx:
wow thanks man, it worked. :D it's weird how the solution is actually simple, but i was doing all this complex crap to try to get it to work. anyway, thanks man.
MaJoRa:
--- Quote from: xxbloodlustxx on April 04, 2006, 05:52:11 pm ---wow thanks man, it worked. :D it's weird how the solution is actually simple, but i was doing all this complex crap to try to get it to work. anyway, thanks man.
--- End quote ---
Your welcome, just needed some advice from experienced gamemaker users. The ammount of mistakes i made like that, i did it all with global variables at first before i realised that i could do it with the obj[name].x ect, those were the days.
Navigation
[0] Message Index
[#] Next page
Go to full version