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 / Error 7008 - Object does not exist at line 133

Author
Message
Kakarzejin
11
Years of Service
User Offline
Joined: 6th Jun 2012
Location:
Posted: 6th Jun 2012 13:49
Hey there, I've just tried to implement collision detection for a third-person 2D sidescroller and it's come up with the above error, which corresponds to these lines:



Objects 1 and 11 are previously declared within seperate subroutines which run before the above code does.
TheComet
16
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 6th Jun 2012 15:15 Edited at: 6th Jun 2012 15:16
Can we see those subroutines?

Also, the code above can be simplified to:



TheComet

Chris Tate
DBPro Master
15
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 6th Jun 2012 17:14
Following on from TheComet, if you download Matrix1 utilities, you can use the 'Move Camera Up' command.

Kakarzejin
11
Years of Service
User Offline
Joined: 6th Jun 2012
Location:
Posted: 6th Jun 2012 23:46
Here you go:
Hodgey
14
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 7th Jun 2012 10:45
Quote: "Objects 1 and 11 are previously declared within seperate subroutines which run before the above code does."

Where is object 1 loaded?

Kakarzejin
11
Years of Service
User Offline
Joined: 6th Jun 2012
Location:
Posted: 7th Jun 2012 23:54


The DBO is used as the world environment, and Object 11 as the player character.
zeroSlave
14
Years of Service
User Offline
Joined: 13th Jun 2009
Location: Springfield
Posted: 8th Jun 2012 05:12 Edited at: 8th Jun 2012 05:13
I believe that your _setup_level_1 is not loading until after your collision code is running.

processes before:
in your DO-LOOP.

Try switching them like so:


Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid.

Login to post a reply

Server time is: 2024-04-27 08:03:42
Your offset time is: 2024-04-27 08:03:42