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 add collision items to the game

Author
Message
scythe_reaver
FPSC Reloaded TGC Backer
12
Years of Service
User Offline
Joined: 14th Nov 2011
Location:
Posted: 14th Nov 2011 17:21 Edited at: 14th Nov 2011 17:46
i want to add some collision "pillars" to my game, but i want to make them christmas trees, candy canes, etc. etc., just stuff christmas themed. i can't get it to work, can anyone help please?

load object "models/christmastree.x",300
t=300
For x = 1 to 9
For z = 1 to 9
`Make object cube t,100
`Scale object t,100,600,100
y = get ground height(1,x*1000,z*1000)
position object t,x*1000,y+275,z*1000
`texture object t,300
`scale object texture t,1,-6
inc t
next z
next x


im just starting coding in general so im sure this coding is a little sloppy, can anyone help me clean it up please?

"I AM YOUR GOD OF DEATH"
nonZero
12
Years of Service
User Offline
Joined: 10th Jul 2011
Location: Dark Empire HQ, Otherworld, Silent Hill
Posted: 14th Nov 2011 21:41
1) Please put code in snippets: [ code] your code [ /code] but without the spaces preceeding code and /code.

2) If you are new to programming then you should go through ALL of TDK's tutorials. It will help you a lot. They can be found here:

http://forum.thegamecreators.com/?m=forum_view&t=99497&b=10

If you are feeling impatient and wanna dive right in, tutorial number 10 is the collisions tutorial and it should arm you will all you need. Hope you find it useful

scythe_reaver
FPSC Reloaded TGC Backer
12
Years of Service
User Offline
Joined: 14th Nov 2011
Location:
Posted: 14th Nov 2011 23:18
Ok I'll check them out, and thanks for the tips!

http://www.shrinkpictures.com/processed/phprZ6E7O_c2AM.jpg
"I AM YOUR GOD OF DEATH"

Login to post a reply

Server time is: 2024-05-20 07:34:41
Your offset time is: 2024-05-20 07:34:41