Author Topic: Warp line to another room  (Read 2075 times)

TheBlackLion

  • Crewmate
  • *
  • Posts: 2
    • View Profile
Warp line to another room
« on: September 23, 2012, 02:58:41 pm »
Hi!
I'm new on this game and I'm starting creating a cool custom level  :viridian:
but I was wondering if there was any possible way to make a warp line on a room edge that teleport you to another room edge (which is obviously not touching the first one).
And maybe even a way to teleport you from an horizontal edge to a vertical edge?
I can do this with warp token but it takes a lot of place and didn't give me the result I want...

Thanks for your help!

Dav999

  • Global Moderator
  • Captain
  • *****
  • Posts: 2183
    • View Profile
    • The Open Level Project
Re: Warp line to another room
« Reply #1 on: September 23, 2012, 03:27:11 pm »
Hi!
I'm new on this game and I'm starting creating a cool custom level  :viridian:
but I was wondering if there was any possible way to make a warp line on a room edge that teleport you to another room edge (which is obviously not touching the first one).
And maybe even a way to teleport you from an horizontal edge to a vertical edge?
I can do this with warp token but it takes a lot of place and didn't give me the result I want...

Thanks for your help!

It's not possible normally, but you can do that with internal scripting (that means, something complicated that can be accessed through an exploit in the script editor), but it is possible. Imagine you want to go from room A to room B, but the exit of room A takes you to the adjacent room C instead of room B. If possible, make room C identical to room B. Go to room C in the level editor and remember the coordinates (in the bottom right corner). Make a script box at the very edge of where you enter room B, give it a name, and type this in the script:

Code: [Select]
say(-1)
text(1,0,0,4)
say(4)
gotoroom
endcutscene()
untilbars()
loadscript(stop)

Now, don't try to understand what the above means. Take the coordinates of room C and subtract 1 from each of the two numbers (so if C has coordinates (5,2), you'll get (4,1). Type that after 'gotoroom, so you'll get:

Code: [Select]
say(-1)
text(1,0,0,4)
say(4)
gotoroom(4,1)
endcutscene()
untilbars()
loadscript(stop)

Now, save your level and test it. You'll hear a terminal sound, and you'll have to wait for the cutscene bars, but at least it does what you want.

TheBlackLion

  • Crewmate
  • *
  • Posts: 2
    • View Profile
Re: Warp line to another room
« Reply #2 on: September 29, 2012, 12:23:45 pm »
Thanks a lot for the help, i'll try to do that.
Also where can i find a tutorial about vvvvvv script editor?

Dav999

  • Global Moderator
  • Captain
  • *****
  • Posts: 2183
    • View Profile
    • The Open Level Project
Re: Warp line to another room
« Reply #3 on: September 29, 2012, 02:29:21 pm »