Simple demo for doing basic collisions with distance and radius. The sprites are only representative, so there is not any pixel collision. Use arrow keys to move the green sphere.
http://dl.getdropbox.com/u/472186/Construct/Forums/DistancePhysics.cap
pretty cool. could come in handy somewhere along the line haha.
Develop games in your browser. Powerful, performant & highly capable.
This is very hard to read though. Shouldn't the the horizontal scroll bar be available? Is that a bug?
You can click and drag the right edge of the condition and resize it
Sorry, it is resized to my monitor (1680x1050)
Another little update with multiple objects: http://dl.getdropbox.com/u/472186/Construct/Forums/DPhysMultiObject.cap
The goal is to get the same effects but using the same objects
You dont need to use two for loops btw.
You can loop each 'pusher' and then use
Pick object by comarison: (use the same system comparison params)
and it works just the same but probably a bit faster
Thanks David, I changed it and works well
Thanks David, I changed it and works well :D . Is this method faster than collision? Is posible to get the same effect but with one object type? :roll:
Quote from another topic:
The only propely working solution is to apply two families to same object type, and make conditions where "Family A" overlaps with "Family B" to distanguish the different instances. There have been discussion about this before, http://www.scirra.com/phpBB3/viewtopic.php?f=3&t=1541&st=0&sk=t&sd=a&start=20, http://www.scirra.com/phpBB3/viewtopic.php?f=16&t=1667 and http://www.scirra.com/phpBB3/viewtopic.php?f=17&t=1740&p=12449