Jump to content

  • Log In with Google      Sign In   
  • Create Account

#Actual0Circle0

Posted 19 January 2013 - 08:19 PM

Animation is as easy as splitting the image into an array. Figure how to split the image and put each part into the same array and Animating is as easy as...

 

Image[15];
i++;
if (i > 14)
    i = 0;
Draw Image[i];

 

BOOM animated. Don't really need a tutorial on animation. Just need to know how to load the image properly. This is just sudo code

 

EDIT: Not sure if SDL has an easier way of doing it, I know Allegro does but that is irrelevant unless you use Allegro and SDL. As you can use both at the same time.


#80Circle0

Posted 19 January 2013 - 08:17 PM

Animation is as easy as splitting the image into an array. Figure how to split the image and put each part into the same array and Animating is as easy as...

 

Image[15];
i++;
if (i > 14)
    i = 0;
Draw Image[i];

 

BOOM animated. Don't really need a tutorial on animation. Just need to know how to load the image properly. This is just sudo code

 

EDIT: Not sure if SDL has an easier way of doing it, I know Allegro does but that is irrelevant unless you use Allegro for drawing and SDL for everything else or vice versa. As you can use both at the same time.


#70Circle0

Posted 19 January 2013 - 08:16 PM

Animation is as easy as splitting the image into an array. Figure how to split the image and put each part into the same array and Animating is as easy as...

 

Image[15];
i++;
if (i > 14)
    i = 0;
Draw Image[i];

 

BOOM animated. Don't really need a tutorial on animation. Just need to know how to load the image properly. This is just sudo code

 

EDIT: Not sure if SDL has an easier way of doing it, I know Allegro does but that is irrelevant unless you use SDL for drawing and Allegro for everything else or vice versa. As you can use both at the same time.


#60Circle0

Posted 19 January 2013 - 08:15 PM

Animation is as easy as splitting the image into an array. Figure how to split the image and put each part into the same array and Animating is as easy as...

 

Image[15];
i++;
if (i > 14)
    i = 0;
Draw Image[i];

 

BOOM animated. Don't really need a tutorial on animation. Just need to know how to load the image properly. This is just sudo code

 

EDIT: Not sure if SDL has an easier way of doing it, I know Allegro does but that is irrelevant.


#50Circle0

Posted 19 January 2013 - 08:14 PM

Animation is as easy as splitting the image into an array. Figure how to split the image and put each part into the same array and Animating is as easy as...

 

Image[15];
i++;
if (i > 14)
    i = 0;
Draw Image[i];

 

BOOM animated. Don't really need a tutorial on animation. Just need to know how to load the image properly. This is just sudo code


#40Circle0

Posted 19 January 2013 - 08:09 PM

Animation is as easy as splitting the image into an array. Figure how to split the image and put each part into an array and Animating is as easy as...

 

Image[15];
i++;
if (i > 14)
    i = 0;
Draw Image[i];

 

BOOM animated. Don't really need a tutorial on animation. Just need to know how to load the image properly. This is just sudo code


PARTNERS