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 / Follow Question

Author
Message
FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 23rd Aug 2007 19:25
Im working on a game where u pick up a ball and go to the other goal and u score. But Im having problems making the ball follow the user.

Here is my code:



Im new to this so its confusing the crap ot of me. I want the ball to be place a little above the cube when it moves. But it wont work. What am I doing wrong?

Scorpyo
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: italy
Posted: 23rd Aug 2007 20:51


1) variables inside functions are not seen unless made global

2) you must keep track of your happened collision with a flag

Login to post a reply

Server time is: 2024-09-27 02:29:23
Your offset time is: 2024-09-27 02:29:23