GameBanana shows no ads to members. Sign up now!
Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

Animation Play

A Question for Sonic 3 A.I.R

Question Answered but Unsolved

This Question has been answered but no solution has been chosen. You can still post your own answer to help the submitter.
How do i make a certain animation play during sonics double jump? im trying to make this animation the floating animation for a swimming mod. and i want to know how to make it play while only underwater
Sign up to access this!
  • BlueStreakMods avatar
    BlueStreakMods username pic Joined 5mo ago
    Mod Making
    Team Flame Quest Flag Affiliation: Team Flame Quest
    8,548 points Ranked 771st
    29 medals 3 legendary 6 rare
    • Became a Ripe Supporter Medal icon
    • 30 submissions featured Medal icon
    • Reached 100 subscribers Medal icon
    • 10 submissions featured Medal icon
    • Submitted 20 Gamefiles Medal icon
    • Returned 1000 times Medal icon
    BlueStreakMods avatar
    BlueStreakMods
    Team Flame Quest Flag
    Affiliation
    Team Flame Quest
    2mo
    char.state = char.state.ANIMATION_NAME_HERE
    Look in the file defines_character.lemon for a list of animation names.
    Salad Plain, You Say? avatar
    Mantra
    Salad Plain, You Say?
    URL to post:
  • DaKingofCheckerz avatar
    DaKingofCheckerz Joined 10mo ago
    Offline
    2,984 points Ranked 19,924th
    14 medals 1 legendary 2 rare
    • Returned 5000 times Medal icon
    • Returned 1000 times Medal icon
    • 25 posts awarded Exemplary Feedback Medal icon
    • Returned 100 times Medal icon
    • One month a member Medal icon
    • 1 post awarded Exemplary Feedback Medal icon
    2mo
    Make a global variable that gets set when you activate the swimming (call it something like sonicIsSwimming) and set it to 1 when swimming's active and set it to 0 otherwise. Then, in the animation script (Standalone.drawCharacterSprite()), add a check for the sonicIsSwimming variable and change the key to the swimming sprites like this:
    if(sonicIsSwimming)
    {
    	key = stringformat("character_sonic_swim_0x%02x", (level.framecounter >> 3 % 4))
    }
    else if(animationSpriteEx >= 0x100)
    {
    ... // Rest of the vanilla code here
    You can mess around with the numbers to change the speed & number of frames for the animation (the % 4 part controls how many frames the animation has). You'd also need to set up sprites for it, using the format character_sonic_swim_0x%02x, where the %02x would be replaced with the number of the frame. You'd set this up like any other sprite mod, and I've got a pretty good guide of how to do it contained within the files of Super/Hyper Sprites (specifically for the standing sprites, but the method here's the same). 

    This would give you a fully-custom animation without having to sacrifice any of Sonic's vanilla animations.
    Batman
    URL to post:

Embed

Share banner
Image URL
HTML embed code
BB embed code
Markdown embed code

Announcement


imperfect is cringe

- Imperfect

Asker

Imperfect avatar
Imperfect username pic Joined 5mo ago
Offline
Jake's Modding Gang Flag Affiliation: Jake's Modding Gang
1,073 points Ranked 24,832nd
14 medals 1 legendary 2 rare
  • Returned 5000 times Medal icon
  • Returned 1000 times Medal icon
  • 10 submissions featured Medal icon
  • Returned 100 times Medal icon
  • 1 post awarded Exemplary Feedback Medal icon
  • One month a member Medal icon
Imperfect avatar
Imperfect
Jake's Modding Gang Flag
Affiliation
Jake's Modding Gang

Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • 1
  • 284
  • 2
  • 2mo
  • 2mo

More from Submitter

WiPs by Submitter

More Game Files Questions