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 / Could someone help?

Author
Message
Darkelf0
18
Years of Service
User Offline
Joined: 31st Oct 2005
Location:
Posted: 4th Nov 2005 00:51
Any help to this problem would be GREATLY appreciated!

Just a few problems. Currently When i run the program, it loads up the second sprite on startup, I thought it should run the first sprite, from the backgrounds.png file.

Second, is there anyway to have a transparent background for a sprite?

Third, I would like to reuse KeyPress(2), is there anyway to do this?

If this is ambigous, please say so, and Ill try to explain, but im pretty lously at explaining.

Thanks
David iz cool
19
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 4th Nov 2005 06:56
you need to show your code if u want people to help.
Darkelf0
18
Years of Service
User Offline
Joined: 31st Oct 2005
Location:
Posted: 4th Nov 2005 11:19
im sure i added it in the code slot :o

David iz cool
19
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 4th Nov 2005 22:43
well,after looking at your code,i could only see one thing i think is wrong with it.

"IF (KEYSTATE(2)=1) OR (KEYSTATE(79)=1)
selectmode()"

i think u should retype all of these like:

if keystate(2)=1 or keystate(79)=1

no need for the extra parantethese

sorry i couldnt help more,im still a noobie myself,but someone around here might be able to help more.
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 4th Nov 2005 23:54
Is this in DB Pro or DB Classic?

Also, this isn't a problem, but since you're not entering or returning anyhing from your functions, they don't actually have to be functions, you could make them subs instead (no gain, no loss, depends on your preference)

Quote: "Third, I would like to reuse KeyPress(2)"


What's KeyPress(x)? It's not one of your functions, or a command I'm familiar with...

...maybe one day I'll finish a project
Darkelf0
18
Years of Service
User Offline
Joined: 31st Oct 2005
Location:
Posted: 5th Nov 2005 01:35
I ofcourse meant keystate(x) i am very sorry!
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 5th Nov 2005 04:07
Also make sure when you make a sprite that you do not delete its image until you are ready to delete the sprite. Reloading the image will retexture the sprite. Assuming you are using DBP ... if you are using DBC then forget what I said

Login to post a reply

Server time is: 2024-09-24 07:29:34
Your offset time is: 2024-09-24 07:29:34