Jump to content


Photo

Add_sprite animation


  • Please log in to reply
3 replies to this topic

#1 Stickman1

Stickman1

    GMC Member

  • GMC Member
  • 21 posts
  • Version:GM8

Posted 29 July 2012 - 07:12 PM

Can I add_sprite to make a animated sprite out a image with an vertical strip or just horizontal?
  • 0

#2 JRA

JRA

    GMC Member

  • GMC Member
  • 44 posts
  • Version:GM:Studio

Posted 12 August 2012 - 10:22 PM

It is easiest to use horizontal sprite sheets.

You can convert vertical sprite sheets to horizontal ones within Game Maker, unless, of course, your game uses custom sprites imported from the user:

Create a new sprite, click Edit Sprite, then select File>Create From Strip. From there, import your sprite sheet. Set the Images Per Row to 1. Change the values to fit the sprite sheet. Then, press OK and save it as a PNG file, making it a horizontal sprite sheet.
  • 0

#3 Gamer3D

Gamer3D

    Human* me = this;

  • GMC Member
  • 1590 posts
  • Version:GM8.1

Posted 12 August 2012 - 11:30 PM

Alternately, import the strip (as a still image) and use draw_sprite_part to draw a given subimage.

Edited by Gamer3D, 12 August 2012 - 11:31 PM.

  • 0

#4 Stickman1

Stickman1

    GMC Member

  • GMC Member
  • 21 posts
  • Version:GM8

Posted 28 November 2012 - 02:41 PM

Alternately, import the strip (as a still image) and use draw_sprite_part to draw a given subimage.

Thanks :D
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users