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 / sprite hit question.....

Author
Message
NewNoob
17
Years of Service
User Offline
Joined: 8th Jan 2008
Location:
Posted: 8th Jan 2008 15:06
sorry im noob here....
may i know the "sprite hit" command just can use on the another sprite(image) only??

can it use wif the 2d??
like cirles we had draw in the DB...
Thank you very much

P/S:hope u guys understand wat i talking about....
sorry guys.... my english very poor....
demons breath
21
Years of Service
User Offline
Joined: 4th Oct 2003
Location: Surrey, UK
Posted: 8th Jan 2008 19:18 Edited at: 8th Jan 2008 19:18
Sprite hit only works for collisions between different sprites

If you want to use it with something 2d though you could just draw the 2d thing, then use the Get Image command to copy whatever you've just drawn into an image, use this image for a sprite and then check for the sprite collision with your new sprite...

"A West Texas girl, just like me"
-Bush
NewNoob
17
Years of Service
User Offline
Joined: 8th Jan 2008
Location:
Posted: 9th Jan 2008 03:21 Edited at: 9th Jan 2008 16:33
oic...
may i ask more few question???
the syntax for "Get Image" is

"Get Image image number,left,top,right,bottom"

how i can specific or count the left,top,right,bottom???
thank you very much...

P/S:hope u guys understand wat i talking about....
sorry guys.... my english very poor..

[edit] sorry.. i know the concept of get imagealready

but may i ask another question???


may i know how can count the time when playing the game???
and the end display the time...

Thank you very much....
sorry my english very poor... hope u guys understand ...

Login to post a reply

Server time is: 2025-06-02 09:43:50
Your offset time is: 2025-06-02 09:43:50