MTecknology Member Posts: 13 From: Registered: 08-18-2003 |
my code is Global Ships = LoadAnimImage("Ships.png", 24, 28, 0, 2): MaskImage Ships, 255, 0, 255 Global Enemy = LoadAnimImage("Enemy.png", 32, 30, 0, 3): MaskImage Enemy, 255, 0, 255 Global Enemy2 = LoadAnimImage("Enemy2.png", 32, 44, 0, 4): MaskImage Enemy2, 255, 0, 255 Global Enemy3 = LoadAnimImage("Enemy3.png", 32, 30, 0, 3): MaskImage Enemy3, 255, 0, 255 Global Power = LoadAnimImage("Powerups.png", 32, 30, 0, 4): MaskImage Power, 255, 0, 255 Global Boss = LoadAnimImage("Boss.png", 96, 94, 0, 3): MaskImage Boss, 255, 0, 255 Global Asteroids = LoadAnimImage("Asteroids.png", 32, 28, 0, 5): MaskImage Asteroids, 255, 0, 255 Global Explode = LoadAnimImage("Explode.png", 32, 32, 0, 19) Global Shots = LoadAnimImage("Shots.png", 4, 9, 0, 3): MaskImage Shots, 255, 0, 255 Global EShots = LoadAnimImage("EShots.png", 7, 11, 0, 3): MaskImage EShots, 255, 0, 255 Global Orb = LoadAnimImage("Orb.png", 64, 64, 0, 10) Global Logo = LoadImage("Logo.png") I get the error 'Image does nto exist' ------------------ |
AmazingJas Member Posts: 437 From: Sydney, NSW, AUSTRALIA Registered: 04-03-2003 |
Ahhh, forget everything I've said below, after typing it all in, I realised what your prob is, you are using the demo version of BB yes? The demo version doesn't let you use .png files, the full version does. The problem is that the loadanimimage command is failing for some reason, I can't see why, but I suspect it is a problem with the image file itself. Quote from the BB manual: "The image strip consists of 2 or more frames, horizontally aligned in a single graphic image. There are no spaces between the frames, and each frame must be the same width and height. There are some free utilities around to help you do this." |
Psyco Member Posts: 55 From: Australia Registered: 08-25-2003 |
I thought that the demo version did allow for .png files Im guessing that its a spelling error put on debug and see if it says the same thing, if it says illegal memory adress that you have the wrong path. ------------------ [This message has been edited by Psyco (edited August 25, 2003).] |