Enemy is so jumpy... why?

Discussion and feedback on Construct 2

Post » Sun May 04, 2014 6:09 am

I´m creating a shot'n up game but the enemys are so jumpy in y axis, how can I get smooth y values? The source capx is anexed. Thanks!
You do not have the required permissions to view the files attached to this post.
Be nice with others and with yourself!
My musics: https://soundcloud.com/vinians
My C2 Forum:
http://nmbr.forumeiros.com/
My Site:
http://www.dicasebytes.com.br
B
22
S
5
G
6
Posts: 167
Reputation: 4,949

Post » Sun May 04, 2014 6:45 am

Because your force large steps for movement on you Y vector.

Change how you consider speed from a step size to a Pixel Per Seconds. Then multiply by dt.

so
Enemy.Y = self.y + (self.speed * dt)
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,028

Post » Sun May 04, 2014 6:50 am

hummm, Is Enemy.y <> self.y ??
Be nice with others and with yourself!
My musics: https://soundcloud.com/vinians
My C2 Forum:
http://nmbr.forumeiros.com/
My Site:
http://www.dicasebytes.com.br
B
22
S
5
G
6
Posts: 167
Reputation: 4,949

Post » Sun May 04, 2014 11:02 am

If applied to the Enemy object, Enemy.Y = self.Y

In some programing languages I believe is the "this" keyword.
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379


Return to Construct 2 General

Who is online

Users browsing this forum: oozkaya and 3 guests