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.

Author
Message
Arivias2294
11
Years of Service
User Offline
Joined: 4th Nov 2013
Location:
Posted: 4th Nov 2013 20:12
This is my first post on the forum, so I hope I'm doing this right.

I'm working on the "CarbonAde" project for a class, and I'm getting some very weird bugs in my game.
NOTE: I'm using the carbonade can generation code from the example given with the ISL training program

The plan for my game is simple: you roll down a road, switching between two lanes, collecting fruit and dodging cars as you go.

At first the only problem I had was that the lid on the carbonade can wouldn't appear(I got past that by positioning the camera so you couldn't see it)

Now, whenever it gets to the object generation on line 86,the can is moved to X:0(it should never be there during the game, with the exception of lane changes),and the background plane appears to vanish.

CODE:


NOTE: I know that this program isn't very well written. I'll fix that once I get it to work

If you can know what I did wrong, please tell me. I'd really appreciate it.
SamKM
15
Years of Service
User Offline
Joined: 25th May 2009
Location:
Posted: 4th Nov 2013 21:47
Hey,
What you need here is the line 'autocam off' in GAMESEC the part of the code where you're setting up the camera! If you don't disable autocam, the camera automatically repositions at coords 0, 0, 0 whenever you create a new object... I'm not sure anybody knows why, it just does
Mobiius
Valued Member
22
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 5th Nov 2013 21:21
Quote: " If you don't disable autocam, the camera automatically repositions at coords 0, 0, 0 whenever you create a new object.."

Actually, I believes it automatically positions itself to show the entire object on screen, rather than reset to 0, 0, 0.

SamKM
15
Years of Service
User Offline
Joined: 25th May 2009
Location:
Posted: 5th Nov 2013 21:42 Edited at: 5th Nov 2013 21:42
Quote: " Actually, I believes it automatically positions itself to show the entire object on screen, rather than reset to 0, 0, 0 "


Ah yeah, you're right Mobiius, I'd forgotten that!
Arivias2294
11
Years of Service
User Offline
Joined: 4th Nov 2013
Location:
Posted: 6th Nov 2013 18:09
Nice! autocam off worked. Thanks alot!

Login to post a reply

Server time is: 2025-05-15 17:15:31
Your offset time is: 2025-05-15 17:15:31