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 / Object As a powerup!!

Author
Message
Freezer
21
Years of Service
User Offline
Joined: 12th Nov 2002
Location:
Posted: 26th Nov 2002 23:48
Hello!!
I wounder how i can do so if object1 (the player) (as it is int his case) thouch another object some think happens exampel Object1 gravity gets higher!! //FreeZer
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 27th Nov 2002 01:08
you need to detect for object collision - SET OBJECT COLLISION ON Object Number - Return Value=OBJECT COLLISION(Object Number A, Object Number B)

xxxpetratxxx
B. R. W
QuothTheRaven
21
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: United States
Posted: 27th Nov 2002 04:23
Yes but that's only the first part. So you find out of the objects are colliding. If they are, and you keep touching it, gravity will keep going up. And if you hide it, it will still keep the collision box on the map. I suggest that when you touch it, you move the object to 10000,10000,10000 where it will be out of range of the level and character interaction, and THEN hide it, so there is no chance the collision will happen again.
dreamweaver
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 28th Nov 2002 10:25
Hi,

Could you not use HIDE OBJECT,OBJECTNUMBER then SET OBJECT COLLISION OFF,OBJECTNUMBER ?

dreamweaver sleeps

http://www.pumpkinsoftware.co.uk the makers of Fruit 'n' Loot & Psycho Pumpkins.

Proc AMD 475 mhZ, 128mb ram, crap onboard ATI 8mb video chip, DX8.1, win 98se, DB v1.13.
TheCyborg
21
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Denmark
Posted: 28th Nov 2002 10:35
Yes ofcause. I use this:
If object collision(1,0)=2
Hide Object 2
Set Object Collision Off 2
TimeToShow=Timer()
EndIf

TheCyborg Development.
http://TheCyborg.Amok.dk
The Ultimate Source To DarkBASIC Programming.

Login to post a reply

Server time is: 2024-03-28 22:56:18
Your offset time is: 2024-03-28 22:56:18