Teleportation + maintain speed help!

anithmukanithmuk Member Posts: 235
edited November -1 in Working with GS (Mac)
Hi, I would appreciate any help on how to get my actor to teleport when it collides with one actor and then come out of the second actor with the same velocity/acceleration as when it collided. Thanks

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    Make 2 real attributes teleporter x and teleporter y. In the second teleporter( the one you want the actor to appear at after colliding with the first teleporter) constrain attribute teleporter x to self position x, and then constrain attribute teleporter y to self position y. Then in the player actor make a rule when object collides with the first teleporter change attribute self position x to teleporter x and self position y to teleporter y.
  • anithmukanithmuk Member Posts: 235
    Thanks!
  • simo103simo103 Member, PRO Posts: 1,331
    anithmuk ... Darren made a great help video on this with some important info if I remember correctly .. since he had the teleporter working both ways back and forth, he needed to add a litle to the x position to get it out of the arriving portal otherwise it was always overlapping thus going back and forth in a loop. Anyway I'll let him explain it in the video since he know what he's talking about (and I don't) ;^). Good thing I can find stuff to help people or I'll be useless here!

  • anithmukanithmuk Member Posts: 235
    Cool! thanks for the help, thats one less problem to deal with
Sign In or Register to comment.