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 / terror attack need help with plaseing sprite on backgound and geting it to show up

Author
Message
zork all the way
19
Years of Service
User Offline
Joined: 21st Nov 2005
Location:
Posted: 3rd Dec 2006 01:42 Edited at: 3rd Dec 2006 01:44
i was able to get up my back ground but i cant seem to get up my sprite i have the amiations see pic i want to make it move so its on the wihte line thats there just for reffranse

the aimaintons i have in the pic are BOMB stoper left
bomb stoper attack
bomb stoper right
bomb stoper stoped

and the back ground is in there here is what i have in code so far

im also useing dbp

Your signature was too big

Attachments

Login to view attachments
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 3rd Dec 2006 03:28
This snippet might help you get better structure to your coding layout, it has player control, enemy collision, and a moving enemy.
It moves the moving enemy by the sine wave stored in an array.


zork all the way
19
Years of Service
User Offline
Joined: 21st Nov 2005
Location:
Posted: 3rd Dec 2006 03:33
ok its going good now how do i set up the ainmaitons when i press the keys

Your signature was too big
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 3rd Dec 2006 03:39
the keystate command is usually best as it covers duplicate keys being depressed.
to use the keystate you need to know the keys scancode number

put this in your main loop
text 100,100,"scancode:"+STR$(scancode())

If you want to prevent rapid fire, a common problem with developing games you need to make a flag fall when its pressed once until its pressed again.

each toggle and switch combo has to have a unique name or shoot switch will overlap with bomb switch etc.

the [25] is the scancode for the key P


add this to a main loop and press p



Login to post a reply

Server time is: 2024-11-27 01:48:28
Your offset time is: 2024-11-27 01:48:28