I want this to only create blocks whenever there are no blocks overlapping the plunger object.
However it is creating a new set of blocks every 4 seconds.
any help would be greatly appreciated.
My friend will post the .capx bellow.
BlockMechanics.capx
It looks like every time it moves it removes the blocks then puts them back and during that tick it sees the event "when not overlapping plunger" as true and then spawns the new blocks...
Anyone have a suggestion?
Develop games in your browser. Powerful, performant & highly capable.
I'm looking right now, and looking to see what is going wrong. I'll repost a fix in a bit.
dl.dropboxusercontent.com/u/14087254/BlockMechanics.capx
A couple of things to keep in mind
1. Careful of logic flow in C2. If/Else work really well
2. Work with a layer that you can store all your assets. The reason for this. You need a Sprite object to exist on any layer to have definition. Then you can create the sprite. However, hiding your sprite can cause all sorts of pickedcount/count issues. So just create a serparate layer for assets and your good to go :)