Animated sprites in Pyro2

Post your queries and engine programming questions here
User avatar
gunduzs
Posts: 2
Joined: Mon May 22, 2017 10:10 am
Contact:

Animated sprites in Pyro2

Postby gunduzs » Mon May 22, 2017 10:12 am

Hi Tony,

I have a question on loading animated sprites and sprite sheets.

in Pyro2 we can use something like this to load a sprite animated sequence:

Code: Select all

player.Images=New Image[]( Image.Load( "asset::p1.png" ),Image.Load( "asset::p2.png" ),Image.Load( "asset::p3.png" ),Image.Load( "asset::p4.png" ))


you mention you can also use the Content Manager and "GetImage", can you provide an example of this please and how it would work on a sprite featuring multiple frames?

thanks
User avatar
gunduzs
Posts: 2
Joined: Mon May 22, 2017 10:10 am
Contact:

Re: Animated sprites in Pyro2

Postby gunduzs » Thu May 25, 2017 10:35 am

actually, i worked it out by trial and error!

Return to “Questions”

Who is online

Users browsing this forum: No registered users and 1 guest