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! / Sprite problem

Author
Message
ConorH
23
Years of Service
User Offline
Joined: 5th Feb 2003
Location:
Posted: 13th Aug 2005 12:17
My sprite seems to be appearing as a single white pixel. Iv swapped around the image file, played with the backsave/transparency flags etc, but cannot seem to get a full picture. Any thoughts on what it could be?

its my new rat tail dog!
Robot
22
Years of Service
User Offline
Joined: 27th May 2004
Location:
Posted: 13th Aug 2005 12:45
Please could you post some code demonstrating this problem, otherwise it is very hard to help you.

The happenings of tommorow are behind us now
ConorH
23
Years of Service
User Offline
Joined: 5th Feb 2003
Location:
Posted: 13th Aug 2005 19:10 Edited at: 13th Aug 2005 19:10
sorry bruv. Was hoping it would be something universal

Code called every loop to display player
============================
_DisplayPlayer:

`display sprite
sprite 1,X1 - MapX,Y1 - MapY,2

return


Code to create player
=====================
_MakePlayer:
load image "map/red.bmp",99,1
`make the player
sprite 1,X1,Y1,99

`this sets the sprites properties; by placing a 0 in the backsave flag the background
`behind sprite will not be saved by the computer, hence will speed up our program a
`little. We are not using the backsave feature because we will be replacing the
`background ourselves; this is due to when a sprite is created the 3d backdrop is
`automatically created (a blue screen wiping any 2d images previously draw to the
`screen) and cannot be turned off as long as you have a sprite on screen.
set sprite 1,0,0
`offset sprite 1,0,-10
return

its my new rat tail dog!
Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 14th Aug 2005 04:49
It would help to upload the image too.
ConorH
23
Years of Service
User Offline
Joined: 5th Feb 2003
Location:
Posted: 14th Aug 2005 04:53
Sorry, I found out the problem, nothing to do with images or anything. Simple variable mix up sheesh. Thanks for your concern guys, I appreciate it

its my new rat tail dog!

Login to post a reply

Server time is: 2026-07-08 06:46:47
Your offset time is: 2026-07-08 06:46:47