YesNoOk
avatar

Teleport to Helper (Read 7593 times)

Started by DingusMB, August 17, 2017, 09:17:12 pm
Share this topic:
Teleport to Helper
#1  August 17, 2017, 09:17:12 pm
  • **
  • Déjà vu, mayhap—have you been here as well?
How do I move my character to a specific helper? The helper just stays on the ground until I do anything with it, kinda like a trap.
Re: Teleport to Helper
#2  August 17, 2017, 10:00:40 pm
  • ****
  • Robotics Engineer
    • USA
    • altoiddealer@gmail.com
Probably a few ways but here is the simplest

type = PosSet
trigger1 = numhelper(1234)
x = helper(1234),Pos X
y = helper(1234),Pos Y

Re: Teleport to Helper
#3  August 18, 2017, 07:53:27 am
  • **
  • Déjà vu, mayhap—have you been here as well?
I made it work with this:
;------------------------------------------------------------
[State 0, PosSet]
type = PosSet
trigger1 = Time = 0
x = helper(1301),Pos X
y = helper(1301),Pos Y
ignorehitpause = 1

Im kinda confused tho, 1301 is the state where the helper is "falling" to the ground, 1303 is when its on the floor. Tried with 1303 but it didnt work.
When it changes state is it still considered the "first" one? I had no idea
Re: Teleport to Helper
#4  August 18, 2017, 08:10:37 am
  • ******
    • www.justnopoint.com/
Helper(1301) is the id you assigned the helper

Helper(1301),StateNo =1303 is how you'd reference it's state number
Re: Teleport to Helper
#5  August 18, 2017, 10:52:27 pm
  • **
  • Déjà vu, mayhap—have you been here as well?
Ah yes, I thought if he changed state to 1303 I could just call 1303 and it would work, on Ctrl + C I noticed he had the first ones name.
Thank you both!