View Single Post
Old 31 July 2018, 16:05   #50
mcgeezer
Registered User
 
Join Date: Oct 2017
Location: Sunderland, England
Posts: 2,702
Quote:
Originally Posted by S0ulA55a551n View Post
This confuses me , I guess you object would have a state so the animation frame its on would not matter would it ?
The sprites are ordered on the basis of their type . i.e collectibles/enemies/players/explosions etc.

So for example you might have 100 sprites, 1-20 might be player animations, 21-50 might be collectibles, 51-70 enemies and 71-100 might just be for visual show... like explosions, enemy deaths or background animations like water falls.

So for sprites that don't interact with the player (like explosions) you don't want to generate any collision masks, so in this example the easiest way to do it is state any sprite drawn above 70 does not draw a collision mask and therefore won't affect the player if visually it collides during game play.

If it doesn't make sense I'll try and explain it a bit more later down the line with examples.
mcgeezer is offline  
 
Page generated in 0.05423 seconds with 11 queries