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.

Code Snippets / Very Basic Multiple Creation Functions

Author
Message
RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 1st Jul 2005 03:23 Edited at: 1st Jul 2005 05:28
Pretty bored trying to think of what next to add to my game, so I just came up with these basic functions. I know anyone could do them but they may help some newcommers.

Basically instead of having to type make object over and over again for the same object with a different object number, just use the functions to create them in less lines. I added in a simple positioning function aswell:



The ammount specifies how many of the object you want, the first specifies the starting object number you want the program to....start....from (so if you wanted to create 10 objects starting from object 17 and ending at object 27, just make the first# equal 17), and the other parameters specify the dimensions of the object. The position object function is at the bottom, for random positioning just set the X#, Y# and Z# values using the rnd() command.

Hope it helps someone.


Current Projects: SHADE - Game Maker | Mecho - TGC Puzzle Entry | Halo Physics Engine | COLD - Polygonal Collision Detection

Login to post a reply

Server time is: 2024-11-23 10:42:13
Your offset time is: 2024-11-23 10:42:13