Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411490 Posts in 69377 Topics- by 58433 Members - Latest Member: graysonsolis

April 29, 2024, 03:06:25 PM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsDeveloperTechnical (Moderator: ThemsAllTook)Is there an easy way to make modular animation?
Pages: 1 [2]
Print
Author Topic: Is there an easy way to make modular animation?  (Read 5750 times)
takua108
Level 0
*



View Profile
« Reply #20 on: February 20, 2010, 09:09:17 PM »

Here, I threw together a quick example of how to use lengthdir_x() and lengthdir_y() (which are, if I understand correctly, just really simple ways to use atan2) to do a simple joint animation thing:

http://rezich.com/etc/gmk/modularanimation_1.gmk
Logged
Skofo
Level 10
*****



View Profile
« Reply #21 on: February 20, 2010, 11:11:45 PM »

that sprite needs anti anti-aliasing sooooo badly. I don't know why pixel artists shy away from this.
You seem pretty experienced on the subject. Mind showing us some of your pixel art?
« Last Edit: February 20, 2010, 11:15:35 PM by Skofo » Logged

If you wish to make a video game from scratch, you must first invent the universe.
Shiny
Level 0
***


View Profile
« Reply #22 on: February 21, 2010, 01:07:48 AM »

shouldn't
Code:
var pivotX; pivotX = sprite_get_width(sprite_index) / 2;
var pivotY; pivotY = sprite_get_width(sprite_index) / 2;
be
Code:
var pivotX; pivotX = sprite_get_width(sprite_index) / 2;
var pivotY; pivotY = sprite_get_height(sprite_index) / 2;
?

Copy and paste got me.  Embarrassed
Logged
Mir@k
Level 1
*


Pffffffft


View Profile WWW
« Reply #23 on: February 24, 2010, 09:54:19 AM »

Here, I threw together a quick example of how to use lengthdir_x() and lengthdir_y() (which are, if I understand correctly, just really simple ways to use atan2) to do a simple joint animation thing:

http://rezich.com/etc/gmk/modularanimation_1.gmk
Can you give me the 7.0 version? I don't have 8 yet.
Logged

Pages: 1 [2]
Print
Jump to:  

Theme orange-lt created by panic