Moving An Actor Relative To Another Actor

RosalinaGalaxer

  • Posts: 239

(In the second picture, the orbs actually orbit the player)

I have a problem: I want the position of the orbs in the first picture to be able to smoothly slide into the starting position for the orbit in the second picture, but the only way I've achieved this results in the orbit being off. The reason being: I can set the orbs to slide to a point, but the player can move during this time, and that means that the orbs slide to the previously set point, but that is no longer the same point relative to the player.

So is it possible to move an actor relative to another actor? And if so, how?

Heh, two hundred twenty-second post.
Ģ̷̓l̴̥̒͑̕͝ì̷̘͈̬͈̖̂͂̔̕t̷͔͇̯̥̬̀̽̓͜͝c̵͇̦̼̮̉̐̈́̕͝ͅͅḣ̵̡̫̞͚̐̅ͅë̶̗̦̪̖͚̜́͊̄͑s̵̺̹̖̼̥̃.̴̮̫͐ ̶̛̓̇̾̎

“I have never seen a more heated discussion about context, jazz, and cats.” - VanillaButterz

LIBERADO

  • *
  • Posts: 2720
Use relative coordinates with this block: 
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

RosalinaGalaxer

  • Posts: 239
Could you elaborate a little bit? And wouldn't using that not change the result at all? The problem is that in the time the orbs get from Point A to Point B, Point B has become Point C, while the orbs are at Point B instead of Point C. It's difficult to explain, so I hope I'm not being unclear.
Ģ̷̓l̴̥̒͑̕͝ì̷̘͈̬͈̖̂͂̔̕t̷͔͇̯̥̬̀̽̓͜͝c̵͇̦̼̮̉̐̈́̕͝ͅͅḣ̵̡̫̞͚̐̅ͅë̶̗̦̪̖͚̜́͊̄͑s̵̺̹̖̼̥̃.̴̮̫͐ ̶̛̓̇̾̎

“I have never seen a more heated discussion about context, jazz, and cats.” - VanillaButterz

LIBERADO

  • *
  • Posts: 2720
You are being totally clear. I perfectly understand you.
Wait a moment, I will post an example of my solution for you.
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

LIBERADO

  • *
  • Posts: 2720
Arrow keys to move the character. Space key to move the orbs.
   
<a href="http://static.stencyl.com/games/40035-0.swf" target="_blank" class="new_win">http://static.stencyl.com/games/40035-0.swf</a>

The .stencyl file is attached to this post. You can download it.
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

RosalinaGalaxer

  • Posts: 239
That looks like it'll work. I'll have to do a bit of tweaking to fit it into my game, but otherwise it's good! Thanks!

Hypothetically, I should be able to do the reverse of this (slide the orbs back up) partway through sliding down and nothing will break, right?
Ģ̷̓l̴̥̒͑̕͝ì̷̘͈̬͈̖̂͂̔̕t̷͔͇̯̥̬̀̽̓͜͝c̵͇̦̼̮̉̐̈́̕͝ͅͅḣ̵̡̫̞͚̐̅ͅë̶̗̦̪̖͚̜́͊̄͑s̵̺̹̖̼̥̃.̴̮̫͐ ̶̛̓̇̾̎

“I have never seen a more heated discussion about context, jazz, and cats.” - VanillaButterz

LIBERADO

  • *
  • Posts: 2720
Yes, hypothetically.
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.