Your code is wrong! That's why it isn't working. =) When you use "CreateSprite" with one parameter, you get an integer with the created sprite index. You're not catching this index, so that's why it is screwing up.
(Btw, be more specific with the naming of variables. 'newmissile' is not descriptive in the least. to be frank, it sucks! Do 'newMissileImage' and 'newMissileSprite' for instance, and then you can disconcern them apart when creating stuff
)
Try this code on for size:
REM DECLARE INDEX VARIABLES
newMissileImage as integer
newMissileSprite as integer
REM LOAD IMAGE AND GET A RETURNED IMAGE INDEX
newMissileImage = loadimage("Missile_01.png")
REM CREATE SPRITE AND GET A RETURNED SPRITE INDEX
newMissileSprite = createSprite(newMissileImage)
REM CREATE ANIMATED SPRITE
SetSpriteAnimation(newMissileSprite, 128, 128, 32)
EDIT: Yes Hodgey you are correct, when using that form you need to catch the return value.
Hi there. My name is Dug. I have just met you, and I love you.