Fangames > Programming Questions
roomChanger problem
klazen108:
It works for me in the basic yuuutu engine, so something else about your rooms must be off. You don't need a playerstart object in the next room, the kid from the last room will go over. make sure there's not a block in the next room where the kid wants to go. If the room you're warping from is not the same size as the room you're warping to then you will have issues.
It might help to see the room the kid is supposed to go to, so we can see if something else is going on.
Walking between rooms:
https://gyazo.com/6e170088b73ccd9e2240fd2a3a2eb519
Room layouts:
(click to show/hide)room1:
room2:
Code explanation:
(click to show/hide)
lemonxreaper:
bart_xs:
@klazen its 100% what i want it to do, the height and width is the same on both rooms, but it still does the same thing, where it changes room but my player disappears.
ive noticed the same thing as lemon, where in the code for my player object it says "outsideroomChanger", but even if i use roomChanger or outsideroomChanger it does the same thing, i even tried changing the codes to roomChanger, but its the same thing.
ice also tried using playerStart or player objects in the first stage, but it didnt change anything
(click to show/hide)
(click to show/hide)
klazen108:
Alright, if you have an outsideroomChanger object then it means you're using a newer version of yuuutu, one that's different from the one I used when I wrote the tutorial. I opened up the new version and turns out the roomchanger functionality is indeed broken. To fix it, you need to remove two lines from the player's code:
(click to show/hide)
This will make the outsideroomChanger behave like the old roomChanger object. Guess I need to update my tutorial (I've got a lot of things in there that need changing anyway...)
bart_xs:
yes it worked prefect!
Thanks alot klazen, you explain it very good so its easy to understand and fix :)
Navigation
[0] Message Index
[*] Previous page
Go to full version