How do I get a smooth movement in a vertical scroll game

Get help using Construct 2

Post » Thu Mar 13, 2014 8:05 am

Hi,

I want to get a smooth displacement of a planet sprite in the main screen of a vertical scroll game.

Now I have the planet sprite in a corner and I want the planet disappears slowly...

I have done.

Code: Select all
System     |Every 1.0 seconds    |Planet_sprite   |set X to Self.X-0.3
                                                  |set Y to Self.Y-0.3
                                                  |Rotate 0.1 degrees counter-clockwise


But the result not good...

Any suggestion?
B
17
S
5
G
2
Posts: 173
Reputation: 2,085

Post » Thu Mar 13, 2014 8:20 am

Use the bullet behaviour. Set the angle you like and adjust the speed. Voila :)
B
14
S
3
G
1
Posts: 255
Reputation: 2,027

Post » Thu Mar 13, 2014 8:29 am

And use rotate behaviour for rotation
I will not let you reach the sisters
Nature Forums
B
11
S
5
G
2
Posts: 496
Reputation: 2,306

Post » Thu Mar 13, 2014 8:36 am

@Rabenmutter
@Doc-Ai

thanks very much!!

Sometimes I complicate the things unnecessarily hehe

Whit this both behaviours works very fine now ;) I am using bullet gravity and rotate speed and I am getting good impresions :)

Thanks again! ;)
B
17
S
5
G
2
Posts: 173
Reputation: 2,085

Post » Thu Mar 13, 2014 4:06 pm

You can also use lerp for stuff like this. It provides a nice and smooth effect
Please tag me with @caiorosisca if your post is refering to me :). I don't always follow the topics I answer.
B
11
S
4
G
1
Posts: 272
Reputation: 1,643

Post » Thu Mar 13, 2014 4:33 pm

caiorosisca wrote:You can also use lerp for stuff like this. It provides a nice and smooth effect

Bullet behaviour is better
I will not let you reach the sisters
Nature Forums
B
11
S
5
G
2
Posts: 496
Reputation: 2,306

Post » Thu Mar 13, 2014 4:42 pm

@caiorosisca thanks for your response. I haven't used the lerp still, but with bullet and rotate behaviour I have get this morning very good results :)
B
17
S
5
G
2
Posts: 173
Reputation: 2,085


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 18 guests