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.

DarkBASIC Discussion / Is there a comand that detects colisun with two 3D models/2D Sprites

Author
Message
Gecko
21
Years of Service
User Offline
Joined: 28th Jul 2003
Location:
Posted: 18th Apr 2004 18:06
I mean something like this...
if oject 1 animation 1 is playing and colisun between object 1 and object 2. Take 2 from objects 2 life

Like in a fighting game. Any Help?
Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 18th Apr 2004 19:11
read the help files and a couple of tutorials

if (object playing(1)) and (object collision(1,2)) then objectslife=objectslife-2

is the code version of what you asked (for threeD models) you also have commands that will work for 2d, this isn`t a game maker, its a programming language, you write all the instructions and join them together to get the program to do what you want, if you want a function to disintigrate planets then you write it, if you want one to get cyborgs to chase you then you write that too, you need to follow the tutorials from hello world upwards, and type them in...don`t cut and paste, typing em in forces you to LOOK at the code and correct mistakes, this helps you to undertand exactly what it does, skip reading and cut`n`paste teach you nothing.

Mentor.

PC1: P4 hyperthreading 3ghz, 1gig mem, 2x160gig hd`s, ATI radeon 9800 pro gfx, 6 way surround sound, PC2: AMD 1.2ghz, 512mb ram, FX5200 ultra gfx, stereo 16 bit soundblaster, ups.

Login to post a reply

Server time is: 2025-05-23 16:52:08
Your offset time is: 2025-05-23 16:52:08