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 / multiple collisions DB

Author
Message
reaper
18
Years of Service
User Offline
Joined: 10th Feb 2006
Location:
Posted: 30th Jul 2006 23:40
i am having twouble with colliding with my walls. i put in multiple codes for collision and i cannot seem to get it right. any help will be appreciated.
reaper
18
Years of Service
User Offline
Joined: 10th Feb 2006
Location:
Posted: 31st Jul 2006 21:13
sorry for the double post, but i need help with a matrix problem as well, i put in this code for a semi random matrix and it does nothing, any help is appreciated.
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 1st Aug 2006 04:47 Edited at: 1st Aug 2006 13:24
Don't know if you can go down with a for and next statement there.

"FOR H = 1 to -20" probably won't work.


EDIT: I've looked at it some more and it turns out that you are setting everything to the same height. when you say "For h = 1 to -20" (the -20 may or may not work) You are saying to keep on changing the height on the same tile until it is -20, then do the same to everything else.

Crit
18
Years of Service
User Offline
Joined: 24th May 2006
Location:
Posted: 1st Aug 2006 15:17
for h=1 to -20 should be
for h=1 to -20 step -1

CHESS ENCOUNTER
Demo
WIP
Trowbee
21
Years of Service
User Offline
Joined: 12th Apr 2003
Location: United Kingdom
Posted: 1st Aug 2006 21:54 Edited at: 1st Aug 2006 23:19
Why do you have the third for loop in there? At the end, the matrix height will always be -20

Why not use


This saves over 7000 unneeded repetitions, and then updates the matrix at the end to save time

EDIT:
doh, you wanted to randomise it.
You can use randomize matrix
or
something like (which will give random height between -20 and 20):
reaper
18
Years of Service
User Offline
Joined: 10th Feb 2006
Location:
Posted: 2nd Aug 2006 02:58
thanks to all. my problem is fixed

Login to post a reply

Server time is: 2024-09-25 05:22:19
Your offset time is: 2024-09-25 05:22:19