N0 meD|a ! collision stuff ... very easy (= by FrEaK Sk823rd Feb 2006 2:46
|
---|
Summary When you colliss the object cube than something happens... hmm .. What ? FIND OUT :D Description When you colliss the object cube than something happens... hmm .. What ? FIND OUT :D Code ` This code was downloaded from The Game Creators ` It is reproduced here with full permission ` http://www.thegamecreators.com make object sphere 1,30 make object cube 2,30 position object 1,0,0,0 position object 2,0,0,60 do if object collision(1,2)=1 then delete object 2 : make object cube 2,60 : position object 2,0,45,60 else delete object 2 : make object cube 2,60 : position object 2,0,0,60 if upkey()=1 then move object 1,2 if downkey()=1 then move object 1,-2 if leftkey()=1 then move object left 1,2 if rightkey()=1 then move object right 1,2 loop |