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.

Newcomers DBPro Corner / Sprite Hit or Sprite Collsion? Probs with both....

Author
Message
Colin Hart
21
Years of Service
User Offline
Joined: 28th Apr 2003
Location: United Kingdom
Posted: 19th Jun 2005 21:28
Afternoon All.

I have been working on a simple game. I am having a little trouble with shooting some sprites.

I have tried the commands "Hit Sprite" and "Sprite Collision" however some very strange things happen. The wrong spites vanish.
The code reads.

If left mouse click then is sprite no. 40 colliding / hitting anything? if so get the targer sprite no. Then delete it.

I have pasted the full code for all to see.

Any help would be greatly recieved.

Thank you....

Colin.
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 19th Jun 2005 23:06
Are you using paste sprite to create a trail??

Everytime you call the sprite nr,x,y,img command, it will set the sprite to the given coords and change it img. If the sprite doesn't exist yet, it will create a new one.

Immunity and Annihalation makes Immunihalation...

Login to post a reply

Server time is: 2024-09-23 21:28:29
Your offset time is: 2024-09-23 21:28:29