|
Post by ScroGer on Jan 19, 2009 15:44:14 GMT -5
Does anyone know how to horizontally flip a sprite using Function_HFlipTile().Iv been trying for a while but I just dont get it at all.
|
|
|
Post by Mairtrus on Jan 19, 2009 16:27:38 GMT -5
You should have written this in the BasiEgaXorz forum.
The HFlipTile, VFlipTile and Priority functions need to be added on the <Tile vram offset> argument on the commands PropSprite or DrawTile (DrawTiles and DrawTilesInc doesn't support integers as arguments).
So, if you try to flip horizontally a sprite, you should write something like this:
propsprite MySprite,256+HFlipTile(1),0 Suposing that your sprite is called MySprite, and that his first tile is in the position 256. The same if you want to use the VFlipTile or Priority. It is not strictly necessary to put 0 or 1 as an argument. Any even number works as 0 and any odd number works as 1.
|
|
|
Post by Syniphas on Jan 19, 2009 17:24:13 GMT -5
why didn't I see this function before making airstriker
|
|
|
Post by ScroGer on Jan 19, 2009 18:43:48 GMT -5
You should have written this in the BasiEgaXorz forum. I wasnt sure The HFlipTile, VFlipTile and Priority functions need to be added on the <Tile vram offset> argument on the commands PropSprite or DrawTile (DrawTiles and DrawTilesInc doesn't support integers as arguments). So, if you try to flip horizontally a sprite, you should write something like this: propsprite MySprite,256+HFlipTile(1),0 Suposing that your sprite is called MySprite, and that his first tile is in the position 256. The same if you want to use the VFlipTile or Priority. It is not strictly necessary to put 0 or 1 as an argument. Any even number works as 0 and any odd number works as 1. Thanks I havent tested it but Im sure it works, thanks homie
|
|
|
Post by ScroGer on Jan 19, 2009 19:01:51 GMT -5
Works like a charm, thanks agian
|
|