Interpolate to move

DreamStudiosDreamStudios Removed Posts: 148
edited November -1 in Working with GS (Mac)
How do I use interpolate to make my actor move around a box.

I make it move up and down and left and right but if I put the behaviours together it doesn't work.

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Search for scene preview in GameSalad. It uses interpolate to moves the camera around. You would just need to use the same rules on the actor Positions instead of the cameraOrigin.

    Might help you out.
  • DreamStudiosDreamStudios Removed Posts: 148
    I tried what you said and copied all the attributes and behaviours into my project but all it did was move like this -------------------> after that it stopped. I just want my ball actors to move around a box. Thanks for your response any other ideas?
  • RedlerTechRedlerTech Member Posts: 1,583
    Just use this logic

    Interpolate to 1,
    When position is 1 interpolate to 2
    When position is 2 interpolate to 3
    When position is 3 interpolate to 4
    When position is 4 interpolate to 1

    It's really simple if you get the right numbers for the positions.
    Matt :D
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    well you have to go through and adjust all of the rules and values to reflect the positions you want it to change direction. Also do you mean bounce randomly around a box or move in a square. If you mean randomly bounce it will be pretty much impossible to make any kind of random realistic movement.
  • DreamStudiosDreamStudios Removed Posts: 148
    @NextGen what attribute do I have for interpolate?

    @terdrmer not bouncing just a ball moving around the outside of a box.
    Put a box shape actor in GS. Get another actor and try to make this actor move around the box.
    Move up, right, down, left then up again and keep going. I'm probably make it harder than what it really is.

    Jon
  • RedlerTechRedlerTech Member Posts: 1,583
    I'll make a demo now & try to use math to get it to work universally :D I'll tell you when it's published.

    Matt
  • DreamStudiosDreamStudios Removed Posts: 148
    watch this tutorial

    Now how do I get my actor to move like the box moving around the screen the blue one
  • RedlerTechRedlerTech Member Posts: 1,583
    I'm making a demo.
  • DreamStudiosDreamStudios Removed Posts: 148
    thanks :D
  • DreamStudiosDreamStudios Removed Posts: 148
    awesome great help thanks a lot :D
  • DreamStudiosDreamStudios Removed Posts: 148
    now if I drag in another actor with the same behaviours why do they merge together?
  • DreamStudiosDreamStudios Removed Posts: 148
    to show you what I mean just drag the pink box into the scene.
    Can you see what happened?
Sign In or Register to comment.