How do I stretch an actor connected to another actor?

ocindahouseocindahouse Member Posts: 24
edited November -1 in Working with GS (Mac)
My idea is to have a drill that goes up and down, everytime it goes down it's destroying soil to get down to where lava is, under the earth. I got the sprites of the tip of the drill but my question is how do I make so that the tube that is holding the drill keep stretching out from the top to the bottom when you press down? I have an actor of the tube attached to the actor of the drill head.

I saw a demo of a block that uses the spawn action and kinda leaves a trace behind when you move it. I can recreate the block going down but when I want it to go back up the spawn from when it was going down are still showing, even after the square is fully back at the top position. I'm really trying to figure this out. Any ideas?

Comments

  • ocindahouseocindahouse Member Posts: 24
    I just gotta figure out the whole up and down motion of the drill tube only when the user chooses direction.
  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,881
    Sorry if this is not what you are asking about:

    To move an actor (like a drill 'tube') up and down, you can change its y attribute. Place a very long 'tube' on the bottom layer (behind everything) and then constrain its y attribute to be in sync with the drill head. For example, you could:
    Constrain attribute: self.Position.Y, To: (drill_head.Position.Y)+100
  • ocindahouseocindahouse Member Posts: 24
    Thanks for the reply, in the end I changed ideas and now I actually don't need to have the tube go down behind the drill head. Thanks for the help tho
Sign In or Register to comment.