sine effect

  • ok i don't know how to start but lets just see the picture :

    <img src="http://i45.tinypic.com/30kayw8.jpg" border="0" />

    as shown in the picture in sine behaviour the enemy move left,right of his starting point but the problem i want it to move just left or right and stop in his starting point and then move same way..

    i think this is a simple but i don't know i feel im forgetting something when i try to do it :(

  • You could use bullet movement, custom movement, 8 direction or just events.

    Here's a simple angle change with bullet: BulletAngle.capx

  • Nimtrix i think this the thing that i have forgotten .thanks that exactly what i want^^

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I use 8 direction with default controls set to off for movin things around like that. Its how I make my npcs randomly walk around

  • I love this plugin for exactly the purpose you need it for.

    GauVeldt Ease Behavior

    Note that this plugin will always place the sprite at the origin point specified. An easy way to make each sprite behave the same way is by doing something like this:

    At Start of Layout

    For Each Sprite

    ---> Sprite.GauVeldtEase Set Origin = Sprite.X, Sprite.Y

    ---> Sprite.GauVeldtEase Set Destination = Sprite.X + 64, Sprite.Y

    Then you can do something like...

    Every Tick

    ---> Sprite.GauVeldtEase Ease Both

    ... and it'll make them go back and forth constantly. Of course it can do a lot more than just that, but I believe that's probably what you're looking for.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)