Possible "Ball Behavior" bug?

For questions about using Classic.

Post » Fri May 07, 2010 5:09 pm

[url:331l5qxe]http://dl.dropbox.com/u/1105553/bouncy.cap[/url:331l5qxe]

I made a box out of four solid sprites (I tested this with one sprite cloned three times and the same thing happened) and put another sprite with the "Ball Behavior" inside.

After bouncing around several times it flies through the top part of the box, even though it's settings are the same as all of the other sides.

Is there something that I've done wrong, or is this a bug?

(I'm using version .99.84)
B
4
S
2
G
4
Posts: 401
Reputation: 2,302

Post » Fri May 07, 2010 7:03 pm

Never mind...

I tried making a single sprite and hollowed out the center, and it worked fine.

Sorry.
B
4
S
2
G
4
Posts: 401
Reputation: 2,302

Post » Fri May 07, 2010 7:42 pm

Ugh. No, that just *seemed* to work. After a while the ball still escapes from the top of the hollowed out box sprite (but it seems like it ONLY escapes from the top).

Unless anyone else knows otherwise this looks like a bug.
B
4
S
2
G
4
Posts: 401
Reputation: 2,302

Post » Fri May 07, 2010 7:45 pm

Might be getting some frame skip. That would allow it to move through solids.
Image Image
B
161
S
48
G
89
Posts: 7,347
Reputation: 66,249

Post » Fri May 07, 2010 7:47 pm

[quote="newt":1brgga2v]Might be getting some frame skip. That would allow it to move through solids.[/quote:1brgga2v]

Can this be fixed with TimeDelta? The example that I posted doesn't actually have any events... :?
B
4
S
2
G
4
Posts: 401
Reputation: 2,302

Post » Fri May 07, 2010 7:55 pm

Actually timedelta is the reason it can skip.
If your not terribly worried about v-sync, you can set it to unlimited. Otherwise all you can do is make sure the ball, and walls are not set to point. Then increase the size of the ball, and the walls.
One thing you might try is scaling the objects bigger, and scaling the view so they then look smaller....not sure if that will really help tho.

Also the hotspot on the ball is a little off. That with rotation could be making things worse.
Image Image
B
161
S
48
G
89
Posts: 7,347
Reputation: 66,249

Post » Fri May 07, 2010 8:05 pm

Shutting off rotations seems to make the problem stop. Thank you, Newt. 8)
B
4
S
2
G
4
Posts: 401
Reputation: 2,302

Post » Fri May 07, 2010 8:15 pm

No, it still escapes. Never mind.

Actually... I think the problem may just be that I used Construct's image editor to resize the sprite for the chicken/box. Sometimes weird things happen when I do that.
B
4
S
2
G
4
Posts: 401
Reputation: 2,302

Post » Fri May 07, 2010 11:16 pm

I think the problem is just simply your hotspot not being perfectly centered (unless that was intended?) Just incase you didn't know, you can open the sprite click on hotspot then press 5 on your numpad to center it.

Doing this stopped it from jumping out of the box for me.

EDIT: Actually, nope....... it just escaped out the bottom after a minute or so. Weird.
B
7
S
2
G
4
Posts: 164
Reputation: 2,418

Post » Sat May 08, 2010 12:42 am

From other threads, it seems that the ball behavior is pretty bugged.
B
2
S
2
G
2
Posts: 372
Reputation: 1,794

Next

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests