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.

Newcomers DBPro Corner / DBC - Automaticaly move objects

Author
Message
mark
21
Years of Service
User Offline
Joined: 20th Jun 2003
Location: Englanshire
Posted: 16th Jan 2006 19:02
Im having problems trying to make my game.

Im trying to make a game whereby you have chase after "things" that are running around the matrix.

My problem is that I can place 10 of the "things" (they are just cones atm) randomly on the map but I can't seem to get them to move automatically in a direction and then when they reach the edge of the matrix they bounce off in a random direction.

Thanks for any help.

Mark
Don Malone
21
Years of Service
User Offline
Joined: 27th Apr 2003
Location: Birmingham, Alabama
Posted: 18th Jan 2006 03:17
Do you have any code to post or do you just need general help?

In Memory of My Dad.
I miss you very much.
smallg
Valued Member
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location: steam
Posted: 18th Jan 2006 15:12
basically you need to know the x and z co-ordinates of the matrix and then adjust your cones once they reach them....
i.e.
say ur matrix is 300x300,10,10 and placed at 0,0,0
and ur cone is object 1, placed at 150,0,0 and pointing towards 150,0,300....

ur code should look like


and then the same for x>290
and then for the z values (which in this case will be the same)

that the sort of thing your looking for?

life's one big game

Login to post a reply

Server time is: 2024-11-27 07:55:09
Your offset time is: 2024-11-27 07:55:09