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.

Author
Message
tman
19
Years of Service
User Offline
Joined: 16th Jun 2005
Location: Inside metal gear
Posted: 17th Jun 2005 05:39
i want to make this run so that each block can push the other one i need some help

Stupidity is a gift unwrap it in joy.
nobody is perfect, I am nobody
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 17th Jun 2005 08:11
Code didn't post
Need to post the code in the body of your message instead of the code box. Use the [ code ] button at the top-right of the Post Forum Message area.

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
tman
19
Years of Service
User Offline
Joined: 16th Jun 2005
Location: Inside metal gear
Posted: 17th Jun 2005 09:28
okey here we go

make matrix 1,1000,1000,10,10


make object cube 1,4
make object cube 2,4

set object collision on 1
set object collision on 2


set object collision to boxes 1
set object collision to boxes 2


position object 2,0,0,10

do

z1#=object position z(1)

set camera to follow 0,0,z1#,90,10,5,1,1

if upkey()=1 then move object 1,2.2
if downkey()=1 then move object 1,-2.2
if rightkey()=1 then move object 2,-2.2
if leftkey()=1 then move object 2,2.2

if object collision(1,2)=1 and object speed(1)=>object speed(2)
move object 1,-2.2
endif
if object collision(2,1)=1 and object speed(2)=<object speed(1)
move object 2,2.2
endif

if object collision(2,1)=1
move object 2,2.2
endif


loop

Stupidity is a gift unwrap it in joy.
nobody is perfect, I am nobody
Shadowed Lightning
19
Years of Service
User Offline
Joined: 10th Nov 2004
Location:
Posted: 1st Sep 2005 08:17
i tried all i can, but i cant get it to work...

A C.P.U is not smart at all, all it is, is a colleciton of millions of switches (albeit an extremely fast, exceptionally sophisticated collection of switches)/
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 1st Sep 2005 17:24
You do know that "object speed(id)" is the object's animation speed huh? Not the speed it is traveling.

Immunity and Annihalation makes Immunihalation...

Login to post a reply

Server time is: 2024-09-24 03:15:30
Your offset time is: 2024-09-24 03:15:30