• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Legacy GM Creating Animations and Collision Masks from TileSets/Backgrounds

S

Shadowblitz16

Guest
can someone explain how to create a animation and collision masks from a externally loaded tileset?

I know I have asked similar questions before, but I would like to do this with minimal effort as possible and be able to use them on objects

I also wanted to be able to load them from a json similar to this format with JSOnion

currently I have been using draw_sprite_part.
but was wondering if this was a good idea and if it was possible to do collisions?
 

Nocturne

Friendly Tyrant
Forum Staff
Admin
For any collisions using tiles you'll have to code your own system. The built in collision system will only work for instances that have sprites (or collision masks) assigned to them. What you'll want to do is probably use a ds_grid and then "flag" the grid cells that you can collide with using some value. Then it's easy to check any position against the grid value and deal with that as a collision (my entire game Skein is based on this system: http://www.yoyogames.com/blog/97 http://www.yoyogames.com/blog/98).
 
Top