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 Professional Discussion / Problem with Sparky Collision

Author
Message
Serge Adjo
17
Years of Service
User Offline
Joined: 3rd Aug 2006
Location:
Posted: 4th May 2010 14:57
I'm using Sparky Collision along with DarkAI, but I get the following problem:
-I use SC_setupObject to activate collisions on the 'enemies'
-Then I let the 'enemies' move around and hunt the player...
-Then: The collisions seems to stay at the same place and they don't follow the 'enemies'
- consequence: the player can't actually shoot at the 'enemies' but if he shoot at the place where 'SC_setupObject' was used, he will 'hit the nail on the head'

I don't know if you get the same kind of problem... but I really need help please!

HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 4th May 2010 15:55
have used SC_updateObject after you have moved(hunted) your objects.

Dark Physics makes any hot drink go cold.
Serge Adjo
17
Years of Service
User Offline
Joined: 3rd Aug 2006
Location:
Posted: 4th May 2010 16:28
@HowDo, thank you so much! That was just my first attempt to use Sparky Collision and I didn't notice the 'SC_updateObject' command ! now it is working pretty well ! thank you

'SC_updateObject' at line 10... : (this function handle player's shoots the name of the function means: f_Shoot_Player()...)


Login to post a reply

Server time is: 2024-04-26 17:14:24
Your offset time is: 2024-04-26 17:14:24