I don't understand...

For questions about using Classic.

Post » Fri Aug 21, 2009 12:33 am

In the game I am making, you are supposed to move a block across the ice to the exit. You can't change directions while moving, but only when you hit something (like in Golden Sun).

Sometimes when the block runs into something it leaves a 1-2 pixel barrier between it and said object.

Am I missing something or does Construct have a bug?

File: http://www.mediafire.com/?tw1imnldgjt (arrows to move)
B
1
G
3
Posts: 2
Reputation: 829

Post » Fri Aug 21, 2009 1:08 am

The collisions won't be pixelperfect, since the behaviors are using timedelta and fancy stuff to run the same speed on all computers. You can fix this issue with events though. I added one event to your "All" event sheet. It's basically setting the block to the right position on the pseudo 32x32 grid when it's stopped.

I guess this does the trick for you: download

EDIT: Also keep in mind to use the collision mode "Bounding box" and not "Per pixel" for your box sprites.
B
21
S
6
G
10
Posts: 1,024
Reputation: 7,445

Post » Fri Aug 21, 2009 2:42 am

Thank you, this helped alot.
B
1
G
3
Posts: 2
Reputation: 829


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest