Nice routines!!!! I am very interested in Game Development, this was the reason I started programming years ago (teenagers are but dreamers...)
I would love to be in EuroRevCon but I live in Brazil and the tickets are very expensive, I have not enought money to travel to malta. So I wanted to know if the stacks presented there will be made public so that at least we're able to inspect it and learn from it after.
Cheers Andre
On Mar 19, 2004, at 4:17 AM, Malte Brill wrote:
Hi,
I hope this didn´t come up before. This is from a stack I´d like to show at
EuroRevCon...
if you want a simple circle-circle collision detection you might want to
tray this:
Assuming there are two circle graphics. One called "blue" one called "red"
on checkCollideObject --Circle-circle Collision Check put item 1 of the loc of grc "blue" into x1 put item 1 of the loc of grc "red" into x2 put item 2 of the loc of grc "blue" into y1 put item 2 of the loc of grc "red" into y2 put distance(x1,y1,x2,y2) into theDistance put the width of grc "red"/2+the width of grc "blue"/2 into threshold if theDistance<threshold then put "kaboom! Method Distance math",theDistance,threshold --do your stuff here end if end checkCollideObject
function distance x1,y1,x2,y2 put x1-x2 into compareX put y1-y2 into compareY put round(sqrt (compareX^2+compareY^2)) into theDistance return theDistance end distance
Best,
Malte
_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
-- Andre Alves Garzia 2004 Soap Dog Studios - BRAZIL http://studio.soapdog.org
_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
