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 / I feel stupid asking this but Help anyway!!!

Author
Message
ftrules
21
Years of Service
User Offline
Joined: 1st Jul 2003
Location:
Posted: 7th Sep 2003 06:19
I know this is a reall really stupid question but I dont have the full version of DBpro yet(its on its way) so I'm really teaching myself until it comes.I just want to know how to completely get rid of a sprite when its killed in a game.The best I can do so far is scale the sprite to 0 which basically works except that if you die you can still shoot bullets even though you're invisible.So I really want to know how to completely get rid of the sprite when it dies in the game.I would really appreciate the help even though its such a nooby question!Please Help!
andrew11
21
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 7th Sep 2003 06:22
Err... Delete sprite?

If you want to temporarily get rid of it, use Hide sprite and then show sprite.

"All programmers are playwrites and all computers are lousy actors" -Anon
[img]Visit my site![/img]
ftrules
21
Years of Service
User Offline
Joined: 1st Jul 2003
Location:
Posted: 7th Sep 2003 06:30
If the Sprite is hidden,isnt it still there just invivble?
andrew11
21
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 7th Sep 2003 06:43
Tecnically, yes, but what you are talking about has to do with code rather than sprites. For example, you could do something like this:

If alive = 1
If spacekey()
Firebullet()
Endif
Endif

You need to tell it to stop doing stuff if it's dead.

"All programmers are playwrites and all computers are lousy actors" -Anon
[img]Visit my site![/img]
ftrules
21
Years of Service
User Offline
Joined: 1st Jul 2003
Location:
Posted: 8th Sep 2003 01:05
Oh I Get It!!!
Thnaks!
andrew11
21
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 8th Sep 2003 01:11
No problem

"All programmers are playwrites and all computers are lousy actors" -Anon
[img]Visit my site![/img]

Login to post a reply

Server time is: 2024-11-25 06:27:38
Your offset time is: 2024-11-25 06:27:38