News:

MFG's Character of the Month: September 2026 Voting

Main Menu

How to stretch a frame ? (Draw method ??)

Started by Momotaro, October 01, 2025, 01:16:18 PM

Previous topic - Next topic

Momotaro

Hello,

I found an interesting way to give some elasticity effect in poorly animated normal attacks in some characters.
The idea is to use drawmethod (or anything else) to have some slightly stretched effect on few frames.

This is the code I considered "good" before.

[state angledraw];scale correction
type = angledraw
trigger1 = Animelemtime(4) >= 2;starts
trigger1 = Animelemtime(5) < 0;ends
scale = 0.96,1
ignorehitpause = 1


In this code the idea is to have animelem 4 displayed with a constant stretched effect. (scale = 0.96,1)

However by checking it frame by frame, I noticed it's not constant, it's progressively stretched.  :mwhy:
Is there a way to set is differently to have it constant for the entire animelem 4?

Any other statecontroller or way to do it is welcome.

Thanks

Odb718

Seems like it's multiplying is a thing that can happen.
https://mugenguild.com/forum/msg.2178307
Maybe set it once, and then reset it once??
vVv Gouken718 vVv SabreTooth718 vVv


Momotaro

Quote from: Odb718 on October 07, 2025, 09:11:59 AM
Seems like it's multiplying is a thing that can happen.
https://mugenguild.com/forum/msg.2178307
Maybe set it once, and then reset it once??

Thanks and sorry for the late reply.
I thought my post was lost with newers ones.

Would you give me an exemple?
tweaking my code?

Odb718

So nothing else is scaling it?
When I try this code in my basic attack, I set anim 4 to 200 tics. It stays exactly the same size.
    [state angledraw];scale correction
    type = angledraw
    trigger1 = Animelemtime(2) >= 2;starts
    trigger1 = Animelemtime(5) < 0;ends
    scale = 0.96,1
    ignorehitpause = 1

what happens if you extend the 4th frame's time?? Can you see it getting smaller every tic??
vVv Gouken718 vVv SabreTooth718 vVv