Jump to content


Photo

Animate Tiles

scripts

  • Please log in to reply
3 replies to this topic

#1 smash ball

smash ball

    Volcanic Light

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

Posted 22 July 2014 - 04:26 PM

1406006555_large.jpg?1406006555
Marketplace Link

Updated version 1.1.7
 
Are you sick and tired of those stupid tiles not being animated?  Wish you could just set up an animation strip and be done with it?  Well now you can!  With the animated tile scripts, you can have tile animations set up in no time.


How does this tile animation work you might ask?  Just like sprite strips.  You just need to set up your tile animations from left to right in the background editor, and you're ready to animate them.  You can set the animation speed just like a sprite, and even have the animation play in reverse.  Want to change the tile speed after you initialize it?  You can do that.  Change the index?  You can do that.  Don't want the animation to loop, but want it to reverse?  Just set one argument in a function and it's done for you.  You can animate all tiles on a background, tiles on a certain depth, and much more.  Why bother making eight different sprites, or using alarms at different times to change your tiles when you can have it done in a few function calls?


So what's in this demo?  The demo contains a background set up as an animation strip for your reference.  Two objects showing off the slow functions, and the 'auto-animating' tiles.  Finally, the room contains over 1200 tiles being changed with the slow functions, and 28 tiles being changed through 'auto-animation.'  Help document describing all the functions and setup for auto-animation is included.
 
Images
Spoiler

 
Marketplace Link
 
I'm also looking for feedback on functions others may want, so I'll try to implement suggested functions.
 
version log
Spoiler

Edited by smash ball, 30 August 2014 - 02:15 PM.

  • 0

#2 smash ball

smash ball

    Volcanic Light

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

Posted 04 August 2014 - 03:48 AM

Version 1.1.0 is released!

 

Constants are now added to the extension file.

Accessors are now used.

You can add tiles and tile groups to existing animation data.  Previously, you could only create animation data and destroy it, but could not add more tiles in after creation.


  • 0

#3 smash ball

smash ball

    Volcanic Light

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

Posted 06 August 2014 - 03:30 PM

Version 1.1.4 is released!

 

Added functions for scaling, blending, and alpha for animated tiles.

Added function to set the start and end animation position of the tiles.

Fix for scr_tile_animate_add_ext()

scr_tile_animate_add_* functions will have the tiles added be set to the scaling, blending, and alpha

scr_tile_animate_blank() added.  You can create tile animation data that has no tiles in it (and add tiles at a later time)

Fixes for comments in scripts


  • 0

#4 edneicabofrio

edneicabofrio

    GMC Member

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

Posted 25 January 2015 - 09:41 PM

Hello.
 
I'm trying to make the animation of the tileset below:

 

Spoiler

 

I bought your script in the marketplace. I'm still studying how it works, but I did not understand the script serves to make the animation of a tileset in 03 frames.
 
You can use the script to make the animation of this Tileset without having to divide it into several parts?
 
If possible, what should I do?
 
Thank U,
 
Ednei

 


  • 0





Also tagged with one or more of these keywords: scripts