Fangames > Programming Questions

I'm very stupid

(1/2) > >>

Holyanus:
So, I can't figure out how to make it so I don't have to use warps to go to different areas, I noticed that most games that do this it's just a huge room, but I don't know what to do to make it (Using Yutuu engine). So if anyone knows, I would appreciate if you told me.

lemonxreaper:
im not sure what you mean, I would help otherwise.

Sephalos:

--- Quote from: Holyanus on June 20, 2013, 04:22:27 PM ---So, I can't figure out how to make it so I don't have to use warps to go to different areas, I noticed that most games that do this it's just a huge room, but I don't know what to do to make it (Using Yutuu engine). So if anyone knows, I would appreciate if you told me.

--- End quote ---
What I did in IWBT8b is use a invisible square that I place outside the room.
Then when the player comes in contact with that square: (exemple going to a room to the right)
if room == roomname1  { if x > 800 { player.x = 8; room == roomname2; } }

then lets you want that on both side on the next room it would look like this:
if room == roomname2 { if x < 0 { player.x = 792; room == roomname1; } else if x > 800 { player.x = 8; room == roomname3; } }

When you got most of these set up you can just copy paste and modify as you need them.

Also make sure you make one of these teleporting blocks for each set of rooms or else it will get really clutered in there. Hope this helps.

Sandsky0:
Well a room's dimensions are 800x608 usually, this allows the 32x32 grid to be perfect, most people use the view 800x600 though. Anyways, you want your view to be 800x600, and under the settings tab, you just need to expand your width and height :)

Add 800 to width if you'd like to add a room to the right
Add 608 to height if you'd like to add a room below

Use the background to refer where each room is, unless it's seamless of course, you'll have to use a reference mark outside of the room

I'm just assuming this is what you mean btw, it probably isn't

Holyanus:
Thanks for the help guys (except Lemon)  :Kappa: Hopefully I will be smart enough to do this.

Navigation

[0] Message Index

[#] Next page

Go to full version