Hi all,
So, I'm following the video tutorials
here for AGK.
I'm using a ship that's included with the final product of a space shooter the video series ultimately goes into.
Problem is, when I run the code, the image file shows up broken (checkerboard with a red x). I have the image in the same folder as the source file, I'm calling it by the correct filename.
Here's the code copy/pasted from the file:
SetVirtualResolution(1024,768)
LoadImage(1,"player.png")
CreateSprite(1,1)
SetJoystickScreenPosition(1,512,380)
sx=512
sy=380
do
SetSpritePosition(1,sx,sy)
sx = sx+GetJoystickX() * 8
sy = sy+GetJoystickY() * 8
sync()
loop
I've attached the image file (I shrunk it down so it wasn't so huge, but the problem occurred before I did so, too).
I thought maybe there's an issue with the image file, so I created a new one, just a bright green circle, and saved it as PNG. Same problem. I've uploaded that, too, along with a screenpic of what I'm getting when I run the program.
I thought maybe it was a bitdepth thing, like I have to set 32bit to handle transparency, but couldn't find anything about that.
Can someone point out why that's happening?
Thanks!