Project X Forums
http://px.worms2d.info/forum/

how to make rotating sprites?
http://px.worms2d.info/forum/viewtopic.php?f=13&t=485
Page 1 of 2

Author:  tomaxx11 [ Sun Sep 09, 2012 9:10 am ]
Post subject:  how to make rotating sprites?

plz help making with sprite because i don't know how to make sprite that cycles.
i want make Chrome Launcher i have chrome icon but don't know how to make cycling sprite.

Author:  Curtis [ Sun Sep 09, 2012 10:02 am ]
Post subject:  Re: how to make rotating sprites?

Tomaxx...use this file as a template for your Cycle Sprite....

Author:  tomaxx11 [ Sun Sep 09, 2012 11:16 am ]
Post subject:  Re: how to make rotating sprites?

Curtis wrote:
Tomaxx...use this file as a template for your Cycle Sprite.....delete the nades but keep the white boxes there until your all done so you know all of your sprites are positioned exactly the same before you rotate them....remember though that when you delete any pixles your actaully deleting them from the png so black is actually a color that will show up in game so careful....

After you are done filling every box with whatever sprite you are using make sure all is one layer and then select each box "perfectly" to rotate.
Its very important to select a perfect square when rotating so the rotate axis is at the exact centre of each frame....
If you follow this rule when rotating then all frames will rotate with the same focal point = better animation...you dont necessarily need this many frames but indeed the more the merrier....

or....

If you wanna get really meticulous then you could keep the nades there as a layer of it's own then after your done placing all your sprites in the boxes, temporarily turn down the opacity then rotate trying to match the best you can the nades "behind" your custom sprite layer.....

when all is done plug the png into your LIB then replace the sprite number (animation tab) to the filename of your new sprite.....
let me know how you fair....

If all goes well and your thinking of making sum animation sprites this will help you very much.....
viewtopic.php?f=15&t=486



Thanks very much!! :D :D :D :D :D :o

Author:  StepS [ Sun Sep 09, 2012 11:19 am ]
Post subject:  Re: how to make rotating sprites?

this can also be done with AddSpriteEx function. it has a float for rotating and scaling, and you can rotate it at any angle you want, even the most microscopic, while just having a static single frame in png.

Author:  Curtis [ Sun Sep 09, 2012 11:26 am ]
Post subject:  Re: how to make rotating sprites?

sounds pretty damn useful....maybe can u upload a sample script with a crappy nade wep or sumthin with this function used....could save lots of time indeed...lol now i know why your first reply to the pool balls custom game was :shock:

Author:  tomaxx11 [ Sun Sep 09, 2012 11:41 am ]
Post subject:  Re: how to make rotating sprites?

Curtis wrote:
sounds pretty damn useful....maybe can u upload a sample script with a crappy nade wep or sumthin with this function used....could save lots of time indeed...lol now i know why your first reply to the pool balls custom game was :shock:


ok i followed instruction and then tested :shock: and i launch my weapon and i see thats a regular grenade :shock:
help!

Author:  Curtis [ Sun Sep 09, 2012 12:42 pm ]
Post subject:  Re: how to make rotating sprites?

In the animations tab inside your wepon...do you have ".png" as part of the name?....
so if your file name was ex. "chrome.png" you would just attatch this file to your LIB and put this name in the animation tab (1st field)....

Author:  tomaxx11 [ Sun Sep 09, 2012 1:01 pm ]
Post subject:  Re: how to make rotating sprites?

Curtis wrote:
In the animations tab inside your wepon...do you have ".png" as part of the name?....
so if your file name was ex. "chrome.png" you would just attatch this file to your LIB and put this name in the animation tab (1st field)....


i did that but still regular nade :(

Author:  Curtis [ Sun Sep 09, 2012 2:04 pm ]
Post subject:  Re: how to make rotating sprites?

can you perhaps zip the png you are trying to use and attach it on here

Author:  tomaxx11 [ Sun Sep 09, 2012 3:28 pm ]
Post subject:  Re: how to make rotating sprites?

Curtis wrote:
can you perhaps zip the png you are trying to use and attach it on here


attached sprite

Attachments:
chromeworms (2).png
chromeworms (2).png [ 1.81 KiB | Viewed 13934 times ]

Page 1 of 2 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/