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 / (GDK + AI) Quick code fix

Author
Message
CocaCola
14
Years of Service
User Offline
Joined: 23rd Mar 2010
Location: CocaCola.x CocaCola.y CocaCola.z
Posted: 10th Nov 2010 06:34


I move my small cube left and right but the bigger one does not follow, why?

Always program as if the person maintaining your program is a psychopath that knows where you live
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 10th Nov 2010 15:23
I not sure why yet but try adding



this will show you what the AI is think and doing.

Dark Physics makes any hot drink go cold.
CocaCola
14
Years of Service
User Offline
Joined: 23rd Mar 2010
Location: CocaCola.x CocaCola.y CocaCola.z
Posted: 10th Nov 2010 20:18 Edited at: 10th Nov 2010 20:19
Umm.. when I run it a window pops up, and when I move my cube nothing changes



Always program as if the person maintaining your program is a psychopath that knows where you live
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 10th Nov 2010 21:39 Edited at: 10th Nov 2010 21:40
try adding this outside the gdk loop do the same with the same with Console command.


for those who wish to help in basic here the code added up down code.



Dark Physics makes any hot drink go cold.
CocaCola
14
Years of Service
User Offline
Joined: 23rd Mar 2010
Location: CocaCola.x CocaCola.y CocaCola.z
Posted: 10th Nov 2010 23:58 Edited at: 11th Nov 2010 00:26
Ok, tried this code, the large cube FACES mine but doesn't come after it.



Always program as if the person maintaining your program is a psychopath that knows where you live
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 11th Nov 2010 10:29
see what you get with this




it might help you if you add a floor to your code then you'll see is anything is falling away from the camera.

its confusing when you forget the code is looking down on the objects and not straight on like normal.

Dark Physics makes any hot drink go cold.

Login to post a reply

Server time is: 2024-04-18 17:34:07
Your offset time is: 2024-04-18 17:34:07