How to make an actor flying in the scene?

GuaveMediaGuaveMedia Member, PRO Posts: 1,262
edited December 2011 in Working with GS (Mac)
Hey,

I have a bee flying around in my scene ( random,) but how do I set the rule like that the
bee never can leave the scene, because yet, after a certain time the bee moves out of the scene :/

thx Alex

Comments

  • SingleSparqSingleSparq Member Posts: 1,339
    edited December 2011
    you Can tell the Bee actor to not go outside the Max X and Y of the scene (if greater than, say, 500 reverse direction or something like that)
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    but how to do when using the behavior accelerate?
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    There is only the choice to use accelerate or? But how to do?

    Please help
  • SingleSparqSingleSparq Member Posts: 1,339
    Accelerator is one rule but a separate rule just says don't go beyond x or y of the scene or combine them. If accelerating right and X is greater than 350 then Accelerate left. Or set a wrap on the scene to make the bee go out one side and in the other. OR make collide-able borders outside the scene and if the be hits it tell it to reverse acceleration - lots of things to try.
  • CloudsClouds Member Posts: 1,599
    Wrap !
  • quantumsheepquantumsheep Member Posts: 8,188
    @Tynan

    Wrap is certainly one solution. I find it a bit restricting though.

    I set up 'walls' on the outside edges of the screen, then in every actor I want to wrap, I tell it to change its X position if it hits one of these walls.

    This gives you a bit more leeway as you can decide on an actor by actor basis what will wrap!

    @Alex0407

    SingleSparq has the right idea - it may be a little difficult though as you're using acceleration. You might try just using 'move' and increasing the speed over time, possibly resetting it when you change its position after hitting a wall.

    Hope that helps!

    QS
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Okey just tried to use 'move' with random but it doesn't work,

    so I just want to move an actor a little bit around, to make it more difficult to touch,
    thats all...

    isn't there a more easier way?

    thx
Sign In or Register to comment.