Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / choose what is detected first with sprite collision

Author
Message
samqweqwe
6
Years of Service
User Offline
Joined: 7th Apr 2013
Location:
Posted: 11th Mar 2014 16:33 Edited at: 12th Mar 2014 02:35
hello,
i am making a game with multiple map. This means that when a section is left a new map is shown like in the old zelda games but with no scrolling. when the area is left, the sprites for that area are deleted for performance as if i did not delete them the game would have a low frame rate. but from deleting them meant that the order of the collision detection was different so sprites could go through walls as they were colliding with multiple things.
is there a way to change the order of collision detection or another why to increase the performance without deleting the sprites?

EDIT:
I have fixed the problem but mybe not in the best way. I delete and the create the sprite again so it stays in teh detection order
Gunslinger
12
Years of Service
User Offline
Joined: 29th May 2007
Location:
Posted: 12th Mar 2014 15:43
Without code we can't help.

Login to post a reply

Server time is: 2019-09-17 09:15:36
Your offset time is: 2019-09-17 09:15:36