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 / How to use Extends plugin?

Author
Message
Alaror
13
Years of Service
User Offline
Joined: 9th May 2011
Location:
Posted: 10th Sep 2011 22:03
This is the first Darkbasic Pro plugin I've used, and I'm not quite sure what I need to do in order to use it. In the help files it says that I have to have the command EXT INITIALIZED() at the top of my source code for it to work, but when I try to compile it I get the error "Could not understand command at line..."

What might I be doing wrong?
Hodgey
15
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 11th Sep 2011 06:02
It looks like it returns a value so try something like:
a = Ext Initialized()

Then I think you're supposed to handle it if is hasn't worked so something like:
a = Ext Initialized()
if a <> 1
Print "Error starting extends"
Print "Exiting"
wait 5000
end
endif

Hope that helps

Alaror
13
Years of Service
User Offline
Joined: 9th May 2011
Location:
Posted: 11th Sep 2011 06:48
Fantastic, you're exactly right! I also found that commands (such as B3D MAKE OBJECT) need to have their parameters in parenthesis.
Hodgey
15
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 11th Sep 2011 09:52
Quote: "Fantastic, you're exactly right!"

Glad it worked.

Quote: "I also found that commands (such as B3D MAKE OBJECT) need to have their parameters in parenthesis. "

Yeah I noticed that as well. Extends is a great plugin but unfortunately it is a little bit out of date and some of the commands don't work but I love it's pixel perfect sprite collision.

Login to post a reply

Server time is: 2024-11-24 01:31:23
Your offset time is: 2024-11-24 01:31:23