Think Bejeweled, you've got a grid of x*x size (EG: 10 jewels * 10 jewels)
How can I do that? I mean, placing a single object in a grid of 10*10 and displaying it.
Here's done with jQuery
Also I'd like to know how to smoothly move the falling jewels to their position when an older jewel is destroyed.
(Yeah, i'm pretty much seeking for a full featured bejeweled Example :P)
You should give a try to physics behavior! :)
If you're only moving one-dimensionally , for example if the blocks are just falling down on the Y-Axis- you could LERP instead, as this will afford you more predictable movement than phsyics, especially if you want things on-grid.
Set Gem.Y > LERP(Self.Y,Self.y+GridSize,1^dt)
Develop games in your browser. Powerful, performant & highly capable.
i would love to know how to do this aswell, been trying and trying but haven't found a decent way to do this
same thing here, i couldn't find anything either,
are you looking for something using behaviours? Or are you comfortable enough with the event system to do everything manually (movement, collision, etc...)