Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark Physics & Dark A.I. & Dark Dynamix / repositioning objects

Author
Message
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 19th Jul 2010 12:23 Edited at: 19th Jul 2010 12:25
how can i reposition say a ball that leaves the bottom of the screen, i have tried:



As you can see i even repeated myself, the object number is 300 and is set as a rigid body dynamic sphere ..

Also on another notem, when you delete an object from darkbasic, then recreate it,it seems all collision detection disappears, else i wouldve simply deleted all objects .
Here is a screenie to see what I am upto if it helps! :



300 is the ball of course, i simply want to reposition at the starting position, as shown, when it leaves the bottom of the screen.

Hail to the king, baby!
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 19th Jul 2010 13:15
tried these.




Dark Physics makes any hot drink go cold.
Toydoc
20
Years of Service
User Offline
Joined: 24th Apr 2004
Location: U.S. East Coast
Posted: 23rd Jul 2010 20:55 Edited at: 23rd Jul 2010 22:26
Check out my tiltboard code and program. When my ball leaves the bottom of the screen it is deleted and recreated in the original position.


my restart tag is where I create the initial ball and position.
balls is my variable for the number of balls you have in the game
be sure to delete the object and the rigid body to avoid an object exists error

Hope this helps
Dan

edit: my program and code is in the 20 line forum

Toydoc Dan

Login to post a reply

Server time is: 2024-11-24 12:52:05
Your offset time is: 2024-11-24 12:52:05