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 / strange things happening(sprite)

Author
Message
best seclub
16
Years of Service
User Offline
Joined: 22nd May 2008
Location:
Posted: 12th Jun 2008 19:24
Have a look at the code.Its superb average,and it even gives error.The problem is,the play,about,options sprites paste on the screen well,as well as the background.jpg huge sprite.Only one but: why on earth are there 2 "exit" sprites???the useless one is at the top middle of the screen...

books->movies->games

Attachments

Login to view attachments
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 12th Jun 2008 19:52 Edited at: 12th Jun 2008 19:56
Before I start, I'd like to say that if you want someone to see your code it is usually a good idea to put it in a CODE BOX like this:



instead of uploading a DBA file. Code boxes can be made by typing the following (without the spaces in the [ code ] tabs)
[ code ] The Code goes here [ /code ]


THE PROBLEM:
Okay. Whenever you make a sprite its picture gets put where you made it, in this case at 0,0 (top left corner of the screen). So, when you paste the sprite you will not only see the pasted sprite but also the original from the SPRITE command. The reason "EXIT" is at the top left is because that's the one you created last (all of the other ones are "under" it.)

HOW TO FIX IT:
Try hiding all of the sprites you made using the HIDE SPRITE command.

i.e.


or



best seclub
16
Years of Service
User Offline
Joined: 22nd May 2008
Location:
Posted: 12th Jun 2008 20:16
Thanks for the info.Though the useless "exit" sprite appears at the top Middle of the screen(512,768).Hope its still fixed the same way.

books->movies->games
best seclub
16
Years of Service
User Offline
Joined: 22nd May 2008
Location:
Posted: 12th Jun 2008 20:17
^I ment 512,0

books->movies->games
best seclub
16
Years of Service
User Offline
Joined: 22nd May 2008
Location:
Posted: 12th Jun 2008 20:28
Alright,it worked?
But does this mean a sprite is printed on the sceen even without "paste"?Why,whats the point?

books->movies->games
Ed222
17
Years of Service
User Offline
Joined: 3rd Nov 2007
Location: Calgary
Posted: 12th Jun 2008 21:17
using paste sprite turns the sprite into a image

best seclub
16
Years of Service
User Offline
Joined: 22nd May 2008
Location:
Posted: 12th Jun 2008 21:32
Errrr...loading...I get it!i wrote the resolution of the sprite when created it,instead of writing the coords where it has to appear...stupid,really...

books->movies->games
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 12th Jun 2008 22:04
Glad you've got it fixed

Login to post a reply

Server time is: 2024-11-25 01:58:04
Your offset time is: 2024-11-25 01:58:04