Sprite

Started by FarisDon, Jul 25, 2015, 10:09 AM

Previous topic - Next topic

FarisDon

CreateSprite( "Ring.png", -300, 470, 0, 0, 0, 255 );This is an example of real speedo meter of soul shaker ,  and i want to know that what is that , -300, 470, 0, 0, 0, 255 ???

DizzasTeR

I'll try my best to explain.

CreateSprite( "Ring.png", -300, 470, 0, 0, 0, 255 );
CreateSprite( SpriteName(string), X, Y, 0, 0, 0, Alpha );

  • Ring.png - Self explanatory, name of sprite.
  • -300, 470 - The X and Y cords on screen, this is the position where sprite is going to be created
  • 255 - Alpha - In simpler words transparency of the sprite.

About the 0's I never my self knew what are those, couldn't find an explanation for them anywhere, and I didn't bother to try out what they do, maybe scaling and other options I guess.

KAKAN

The 0,s are the rotation x,y,z of the sprite I guess, u can try them out
oh no

KAKAN

So I wasn't fully wrong
CreateSprite("Filename.png", x, y, rX, rY, rotation, alpha)
that's the format^
You can see the whole topic Here
oh no