【ツ】GS DEMO - Advanced Snap to Grid
Hi,
Recently I saw some post regarding issues with FMG snap to grid demo. The issues were mainly when peoples tried to adapt it, like for examples only on a small portion of the scene or when trying to use bigger cells.
I had a similar problem with Musician's Little Helper and I resolved it.
Here's how:
http://gamesalad.com/game/41758
http://dl.dropbox.com/u/8244920/Snap_to_grid_demo.zip
The only unlocked actor in the grid scenes is "Scene Control" it is used to change attributes that are needed to set the grid height and width, cell dimensions and to adjust the snapping on the x and y positions.
Credits should go to Fire Maple Games for the snapping math and basic rule structure and to Tshirtbooth for pointing me to the use of index values instead of booleans.
________________________________
【ツ】iPhone Icon Pack (compatible with DBA Icon Creator) 【ツ】 - 【ツ】Graphic Pack【ツ】
Free GS demo: High score simple and advanced; Game Center; App Rating System; Custom Font Score and Countdown
Recently I saw some post regarding issues with FMG snap to grid demo. The issues were mainly when peoples tried to adapt it, like for examples only on a small portion of the scene or when trying to use bigger cells.
I had a similar problem with Musician's Little Helper and I resolved it.
Here's how:
http://gamesalad.com/game/41758
http://dl.dropbox.com/u/8244920/Snap_to_grid_demo.zip
The only unlocked actor in the grid scenes is "Scene Control" it is used to change attributes that are needed to set the grid height and width, cell dimensions and to adjust the snapping on the x and y positions.
Credits should go to Fire Maple Games for the snapping math and basic rule structure and to Tshirtbooth for pointing me to the use of index values instead of booleans.
________________________________
【ツ】iPhone Icon Pack (compatible with DBA Icon Creator) 【ツ】 - 【ツ】Graphic Pack【ツ】
Free GS demo: High score simple and advanced; Game Center; App Rating System; Custom Font Score and Countdown
Comments
You can use it in a rule that says:
When overlaps or collide with actor AND beingDragged = 0
-- Destroy this actor
(Useful if you have an area where you want to drop the actor and then have it destroyed, that way it is destroyed only when you release it)
________________________________
【ツ】iPhone Icon Pack (compatible with DBA Icon Creator) 【ツ】 - 【ツ】Graphic Pack【ツ】
Free GS demo: High score simple and advanced; Game Center; App Rating System; Custom Font Score and Countdown
________________________________
【ツ】iPhone Icon Pack (compatible with DBA Icon Creator) 【ツ】 - 【ツ】Graphic Pack【ツ】
Free GS demo: High score simple and advanced; Game Center; App Rating System; Custom Font Score and Countdown