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 / Help me with my game

Author
Message
tasmanian guy
16
Years of Service
User Offline
Joined: 29th Jun 2010
Location: Australia
Posted: 7th Jun 2012 09:45
Having trouble deleting enemy sprites off the screen on my very simple shootem up game.

Everything else appears to working except for the enemy sprites they won't delete or hide!



DBPro is the new Amos (I hope)
mr Handy
18
Years of Service
User Offline
Joined: 7th Sep 2007
Location: out of TGC
Posted: 7th Jun 2012 11:14
I don't see "hide sprite" in your code.

«It's the Pony, pony me this, pony me that» — Bronies
«I sell apples and apple accessories» — Applejack
Derpy delivers: watch?v=g4Kgz4Us_RI
tasmanian guy
16
Years of Service
User Offline
Joined: 29th Jun 2010
Location: Australia
Posted: 8th Jun 2012 13:03
No but shouldn't delete sprite remove the sprite from the screen anyway?

DBPro is the new Amos (I hope)
Daniel wright 2311
User Banned
Posted: 8th Jun 2012 20:53
Quote: "No but shouldn't delete sprite remove the sprite from the screen anyway?"


Why delete them if you can reuse them? Hide them with hide sprite sprite number,then when you want to reuse them,show sprite sprite number. the only way to get rid of sprites is to clr the screen unless you hide them or use a trigger for them.

But to answer your question, clr screen

my signature keeps being erased by a mod So this is my new signature.
tasmanian guy
16
Years of Service
User Offline
Joined: 29th Jun 2010
Location: Australia
Posted: 9th Jun 2012 14:27 Edited at: 9th Jun 2012 14:43
Well to help out others, here is an example of a simple shootem up (I finally sorted out the issue)

It demonstrates multiple enemies, regeneration of the enemy, a bullet routine, sprite collisions and moving the player sprite.

Enjoy!



DBPro is the new Amos (I hope)

Login to post a reply

Server time is: 2026-07-08 03:48:56
Your offset time is: 2026-07-08 03:48:56