Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Ungre

#1
Thanks all the replies.I'm very thankful.
Great community indeed.
Yes I need to learn a lot about GLBasic to understand how it works and to know how to use it effectively.But it should not be a problem with such a super community  ;)
#2
Thanks for the replays.

Dr.Damn Fist:

I'm not sure that to clear the screen is the way I'm looking for.
If I'm creating let say a platform shooter and I want the enemy sprite to disappear when it dies,it sound a bit complicated for me to clear the screen and redraw everything because only 1 sprite.
Mainly if I don't know which enemy going to die or going to die any at all.
But maybe I misunderstand what you say  :D

matchy:
I know how to wait 10 sec,my problem is that,I don't know how to remove a sprite  :P

Ian Price:
The Timer works great.Thanks  :good:
But I'm not sure how well it going to work in different situations.

I used Game Editor before,and I can remove a sprite by using a simple DESTROYACTOR command.I'm looking for a similar easy way to do it in GLBasic,but as far I can see,ther is no similar command in GLBasic  ;/
But a timer will be good for now  :)

Thanks again.
#3
Hi.

Sorry for my bad english I do my best.

I'm new to GLBasic and I would like to know,how it possible to remove a sprite form the screen?

For example,I load and draw 2 sprites int the same position on the screen.

LOADSPRITE "sprite1.jpg",1
LOADSPRITE "sprite2.jpg",2

DRAWSPRITE 1,100,100
DRAWSPRITE 2,100,100

And let say after 10 sec,I want to remove the sprite with ID 2 from the screen and keep only the sprite with ID 1.

I have been tried to load a new "empty" sprite to the place of sprite2 (LOADSPRITE "nosprite",2),but the result is a white box.Looks weird

Is there any command or technics how to remove a drawn sprite form the screen?

Thanks.