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.

2D All the way! / whats wrong with my code?

Author
Message
Joegio13
21
Years of Service
User Offline
Joined: 26th Jan 2005
Location: Miami, FL
Posted: 15th Mar 2006 05:29
im trying to shuffle my sprites in DBP. can you tell me whats wrong with my code plz

-sigh- DBPro can't program in the 4th dimension
Joegio13
21
Years of Service
User Offline
Joined: 26th Jan 2005
Location: Miami, FL
Posted: 15th Mar 2006 05:33
opps. lol. heres the code.


-sigh- DBPro can't program in the 4th dimension
Zergei
21
Years of Service
User Offline
Joined: 9th Feb 2005
Location: Everywhere
Posted: 15th Mar 2006 14:16 Edited at: 15th Mar 2006 14:16
You forgot to "sync", add it before "wait 100" or delete the first sentence "sync on"
Joegio13
21
Years of Service
User Offline
Joined: 26th Jan 2005
Location: Miami, FL
Posted: 21st Mar 2006 03:12
its still not working. all i get is a blue screen. heres my new updated code


-sigh- DBPro can't program in the 4th dimension
The Cure
21
Years of Service
User Offline
Joined: 8th Feb 2005
Location:
Posted: 21st Mar 2006 11:25
Do u get an error message? or does it just not do nethin?
Zergei
21
Years of Service
User Offline
Joined: 9th Feb 2005
Location: Everywhere
Posted: 21st Mar 2006 15:47
Could you post the image your using?
Joegio13
21
Years of Service
User Offline
Joined: 26th Jan 2005
Location: Miami, FL
Posted: 22nd Mar 2006 05:58
i just get a blue screen. i uploaded the image, but in jpg format to save me upload time. (dialup here)

-sigh- DBPro can't program in the 4th dimension
Zergei
21
Years of Service
User Offline
Joined: 9th Feb 2005
Location: Everywhere
Posted: 22nd Mar 2006 12:56
I've done the following with the code. Basically the screen was all blue because, when you grabed the image, your where overwriting the existing image that was there before, thus, haviong nothing to grab. Odd en enough, no error happened. The following code assures that every image grabed is stored within a different image number (which is the most common way of working this things out). Also deleted the animated sprite command.

Joegio13
21
Years of Service
User Offline
Joined: 26th Jan 2005
Location: Miami, FL
Posted: 24th Mar 2006 05:53
thanks, I will test it out tomorow. Just got home from work, and i need to be back in work in 8 hours.

Overtime sucks, well, until payday.

-sigh- DBPro can't program in the 4th dimension
Current Project: untitled 4 years, 5 restarts, 1% chance of ever finishing.
Joegio13
21
Years of Service
User Offline
Joined: 26th Jan 2005
Location: Miami, FL
Posted: 27th Mar 2006 07:50
Once again i have tested my code and it has failed. plz review my code yet again, and tell me why i am getting a blue screen.



-sigh- DBPro can't program in the 4th dimension
Current Project: untitled 4 years, 5 restarts, 1% chance of ever finishing.
Scraggle
Moderator
22
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 27th Mar 2006 09:11 Edited at: 27th Mar 2006 09:13
It isn't working as you hope because you are grabbing areas of the screen which have nothing on them.
You have loaded an image but you are doing nothing with it. Either paste the image to the screen before grabbing or use an offscreen bitmap (a better choice).

Try this:



Joegio13
21
Years of Service
User Offline
Joined: 26th Jan 2005
Location: Miami, FL
Posted: 3rd Apr 2006 22:18
thanks, i will give the code a try.

-sigh- DBPro can't program in the 4th dimension
Current Project: untitled 4 years, 5 restarts, 1% chance of ever finishing.

Login to post a reply

Server time is: 2026-07-01 21:22:28
Your offset time is: 2026-07-01 21:22:28