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 / is there away to load objects into the game through functions

Author
Message
Dark Angel_1246
20
Years of Service
User Offline
Joined: 7th Jul 2004
Location: Australia
Posted: 7th Nov 2004 13:18
hi,
i was wondering if there is away to load a object in through a function(). if so do you mind explaing how.

Jesse Farr
Dark Angel_1246
20
Years of Service
User Offline
Joined: 7th Jul 2004
Location: Australia
Posted: 7th Nov 2004 13:23
oh and is there away to make varibles such as spd# = 0 : Acc# = 0.1 : maxspd# = 24 ect, into globals so if i call them outside of a function i can still use them in the function.

Jesse Farr
Brock
19
Years of Service
User Offline
Joined: 10th Oct 2004
Location: USA,MI,Detroit,
Posted: 7th Nov 2004 13:56
need help on blasting bullect out of animated sprites i need the code for my game can any one help me

Chima-Duru
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 7th Nov 2004 15:48
I guess you can load objects using a function, although I can't think why you'd want to, as it's easily done in one short command. I guess if you wanted to load several objects and manipulate them in some way, it would be something like this:



Any variables defined in the function that you want global outside of the function need to be declared as globals from inside the function - ie.




Login to post a reply

Server time is: 2024-09-23 04:25:27
Your offset time is: 2024-09-23 04:25:27