Sprite.X Far Decimal Floating Point

Discussion and feedback on Construct 2

Post » Thu Jul 25, 2013 7:10 pm

I hooked up one of the stars' positions to a text object to show its X position in the Vertical Space Shooter template.

Interestingly, even though it's supposed to be scrolling down only with the bullet behavior, the text object shows the really far decimal places of the X position constantly fluctuating.

Shouldn't it be stationary, if it looks stationary?
B
29
S
16
G
12
Posts: 212
Reputation: 9,170

Post » Fri Jul 26, 2013 2:40 am

fluctuating, like moving up and down? or just moving incredibly slowly? speed is set to 0? with 0 acceleration?
B
28
S
8
G
1
Posts: 469
Reputation: 4,683

Post » Fri Jul 26, 2013 11:48 pm

The far decimal points like beyond four decimal places just constantly keeps changing on a sprite that is stationary on x and just moving in the y direction.

Maybe that's normal.
B
29
S
16
G
12
Posts: 212
Reputation: 9,170

Post » Fri Jul 26, 2013 11:53 pm

Interesting - if I set the angle of motion of the star to '90' on creation, the issue is fixed.

You'd think it would be 90 already, right?
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,674

Post » Sat Jul 27, 2013 8:57 pm

Yup.
B
29
S
16
G
12
Posts: 212
Reputation: 9,170


Return to Construct 2 General

Who is online

Users browsing this forum: eochranek, giangnd and 3 guests