collapse

Author Topic: Resizing animations  (Read 710 times)

0 Members and 1 Guest are viewing this topic.

Offline shastab24

  • Initiate
  • **
  • Posts: 98
  • Country: United States us
  • Last Login:March 10, 2024, 04:31:10 AM
Resizing animations
« on: May 17, 2015, 02:23:22 AM »
I was wondering how one would code an animation to be a different size.  I see that Dr. Manhattan does this (in a move where he becomes giant and punches the ground) and was wondering how it's done.  I ask because it seems like it could be a route to go for putting character names at the life bars of low-res characters that's not changing the resolution of the entire character.  After all, as it stands, resizing to as small as low-res characters require makes some of the names darn near unreadable, if you do it through something like GIMP (which I use).



Offline Cyanide

  • MUGEN Content Architect
  • *****
  • Posts: 813
  • Last Login:March 29, 2019, 06:52:34 AM
    • Mugen Obscurity
Re: Resizing animations
« Reply #1 on: May 19, 2015, 05:03:53 AM »
Using angledraw you can assign a scale to sprites. By using a variable that increments you can assign an over time increase.

Lets make some stuff up. This will scale your character to double his size over 2 seconds

type = varset
trigger1 = time = 0
fvar(0) = 1.0

type = varadd
trigger1 = time > 0
fv = 0
value = 0.05

type = angledraw
trigger1 = 1
scale = fvar(0), fvar(0)

Simplistic and you'll need to fiddle. Also has no maximum scale applied. Play round. Clsn boxes will NOT scale when you do this, you'll need to guess them in the air file for when you need them.

Tags:
 


* IMT Facebook

Help us by Donating!

IMT Discord

Join us at our Discord! Click the image below!

* IMT Shoutbox

Sorry, this shoutbox does not exist.

* Recent Posts

* IMT Calendar

May 2024
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 [20] 21 22 23 24 25
26 27 28 29 30 31

SimplePortal 2.3.5 © 2008-2012, SimplePortal