sine effect

Get help using Construct 2

Post » Wed Apr 25, 2012 8:22 pm

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

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 :(
B
48
S
15
G
6
Posts: 795
Reputation: 12,035

Post » Wed Apr 25, 2012 11:05 pm

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

Here's a simple angle change with bullet: BulletAngle.capx
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Thu Apr 26, 2012 5:46 am

@Nimtrix i think this the thing that i have forgotten .thanks that exactly what i want^^
B
48
S
15
G
6
Posts: 795
Reputation: 12,035

Post » Thu Apr 26, 2012 5:15 pm

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
B
13
S
5
G
2
Posts: 306
Reputation: 3,262

Post » Thu Apr 26, 2012 5:23 pm

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.TL222012-04-26 17:24:15
B
58
S
20
G
7
Posts: 305
Reputation: 8,804


Return to How do I....?

Who is online

Users browsing this forum: h1k3, Unconnected and 0 guests