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.

Dark GDK / space shooter help on explosion

Author
Message
10521
15
Years of Service
User Offline
Joined: 25th Sep 2009
Location:
Posted: 10th Oct 2009 14:40
ok lol people are probably getting sick of me but..... righteo here is my problems

1. the missile in my game will not disapear when it collides with the asteroid no matter what i do (i tried dbhidesprite, dbdeletesprite and i tried just plain old repositioning it)

2. i don't know how to make an explosion out of all of the pictures i have please help here is code:

main.h:


main.cpp


input.cpp


initiate.cpp


initialise.cpp


Close Down.cpp

any help would be great as this is my first game and (once i complete it) i'll use it as a reference for any other games i may or may not make....
10521
15
Years of Service
User Offline
Joined: 25th Sep 2009
Location:
Posted: 11th Oct 2009 04:12
sigh.... bump!
10521
15
Years of Service
User Offline
Joined: 25th Sep 2009
Location:
Posted: 11th Oct 2009 09:40
someone answer...... plz
10521
15
Years of Service
User Offline
Joined: 25th Sep 2009
Location:
Posted: 11th Oct 2009 13:55
could someone, anyone answer my question please!!!!!! or could u tell me why no one else is???
Isocadia
15
Years of Service
User Offline
Joined: 24th Jul 2009
Location:
Posted: 11th Oct 2009 17:58
Well, I think why no one is answering because of the fact that you have been posting 3 bumps in a row, on the same day. And because of the fact that you post in other peoples topics, and because of the fact that this has been handled alot of times.

But to answer you. You just load all your images after another, and then show the first, hide it then show the second etc. or use a sprite sheet and let GDK do the animation just by using the command makeanimatedsprite.

Isocadia
Mireben
16
Years of Service
User Offline
Joined: 5th Aug 2008
Location:
Posted: 11th Oct 2009 18:01
I wrote you two answers in the other thread.
10521
15
Years of Service
User Offline
Joined: 25th Sep 2009
Location:
Posted: 12th Oct 2009 14:18
thanks alot (again)
10521
15
Years of Service
User Offline
Joined: 25th Sep 2009
Location:
Posted: 13th Oct 2009 14:08
um, Isocadia about the sprite sheet, it dosen't work lol sry, here is my code


all this generates is the first picture on the sheet and then nothing else, any ideas....?? and then (if u, or someone alse, gets it working) could u tell me how to delete it once its done its animation ??
Sprite Sheet Is Attatched thanks in advanced

Attachments

Login to view attachments
Isocadia
15
Years of Service
User Offline
Joined: 24th Jul 2009
Location:
Posted: 13th Oct 2009 17:59
instead of dbSprite use:

dbPlaySprite ( 81, 1, 12, 50 );

50 is the delay, decrease or increase it as you wish. And please look in the documentation. Alot of your answers are answered there.
10521
15
Years of Service
User Offline
Joined: 25th Sep 2009
Location:
Posted: 14th Oct 2009 13:11
thanks alot
10521
15
Years of Service
User Offline
Joined: 25th Sep 2009
Location:
Posted: 16th Oct 2009 11:33
ok Isocadia here is the code sry but (unfortunately) it still dosen't work!!! nothing happens, no explosion no nothing lol here is code for the process which should make the explosion appear the missile (b) and the asteroid (i) collide:


10521
15
Years of Service
User Offline
Joined: 25th Sep 2009
Location:
Posted: 16th Oct 2009 11:44
sry here is code
10521
15
Years of Service
User Offline
Joined: 25th Sep 2009
Location:
Posted: 16th Oct 2009 12:05
don't wry figured it out, damn i'm a retard.....

Login to post a reply

Server time is: 2024-10-01 14:25:49
Your offset time is: 2024-10-01 14:25:49