Strange bug with randomness

For questions about using Classic.

Post » Thu Sep 29, 2011 10:49 pm

In this wee exercise, I've noticed if numerous fireballs hit the alien at the same time, some of the explosions appear in the top left corner rather than at the position of the alien plus a random perturbation. You can see this for yourself if you accelerate towards the alien firing.

Anyone have an idea why this is happening? And any clue how to fix it?

WSAD to move, left click to fire fireballs.



Here
B
2
G
2
Posts: 15
Reputation: 680

Post » Fri Sep 30, 2011 12:10 am

The alien sprite's "hit" animation doesn't have an image point defined, so it defaults to 0,0.
B
79
S
24
G
54
Posts: 4,747
Reputation: 40,757

Post » Fri Sep 30, 2011 4:36 am

^ tested, and it worked
B
83
S
21
G
15
Posts: 1,039
Reputation: 15,134

Post » Sun Oct 02, 2011 12:08 pm

Thanks Rojohound. It's always the simplest things eh? Good to know as well that the image point isn't automatically created, like in MMF
B
2
G
2
Posts: 15
Reputation: 680


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests