Topic: Tails' Flying Script

Well, I saw some attempts of a Tails' flying script, but I didn't like them, or they didn't work properly.
I'm also interested in that script; I tried to do it some time ago but I was not able to. Today I've tried again and I've done a good one. It's very simple, so it will be easy to modify if you want. You have the object code here:

EDIT: Code Updated

object ".tails_fly"
{
    requires 0.2.0
    always_active

    state "main"
    {
        hide
        observe_player "Tails"
        change_state "wait"
    }

    state "wait"
    {
        on_button_pressed "fire1" "up"
    }

    state "up"
    {
        on_button_up "fire1" "ready"
    }

    state "ready"
    {
        on_button_pressed "fire1" "start"
        on_player_walk "main"
        on_player_run "main"
    }

    state "start"
    {
        let "$times = 1"
        on_player_in_the_air "sfly"
        change_state "main"
    }

    state "sfly" 
    {
        set_player_animation "SD_TAILS" 20
        if "$times > 10" "finish"
        on_button_pressed "fire1" "fly"
        on_player_walk "main"
        on_player_run "main"
    }

    state "fly"
    {
        set_player_animation "SD_TAILS" 20
        set_player_yspeed -160
        let "$times += 1"
        change_state "sfly"
    }

    state "finish"
    {
        set_player_animation "SD_TAILS" 19
        on_player_walk "main"
        on_player_run "main"

    }

   
}

Don't forget to add the object into the .tails_companion object!
I hope this will be useful for some of you.
Any suggestion to make it better is well-received big_smile

Last edited by TheSeventhEmerald (2014-01-22 16:44:54)

Piece of cake...!

Re: Tails' Flying Script

Wow that is cool I didn't have the time to do anything but you solved the problem. -aron

www.facebook.com/24XFSAL  Hasn't been updated anytime recently, don't bother.
I'm on SoundCloud: https://soundcloud.com/rain-new-holy - I plan to upload one soon.
Name change from 24XFSAL coming soon. Currently studying for Information Technology and Game development. (Also studying game theory in spare time.)

Re: Tails' Flying Script

No, I haven't. It's not working -again.
Yesterday I only proved to fly, not to walk again ¬¬ It isn't working properly. So we have to keep trying.

EDIT: Fixed, I think. I posted the new code.

Last edited by TheSeventhEmerald (2014-01-22 16:45:22)

Piece of cake...!

Re: Tails' Flying Script

HedgieTheHedgehog wrote:

actually nobody makes a neon or a charge script using their abilities. hmm

well mostly they're working on other stuff which for now they could care less about the characters and focus on what needs to be done.

www.facebook.com/24XFSAL  Hasn't been updated anytime recently, don't bother.
I'm on SoundCloud: https://soundcloud.com/rain-new-holy - I plan to upload one soon.
Name change from 24XFSAL coming soon. Currently studying for Information Technology and Game development. (Also studying game theory in spare time.)

Re: Tails' Flying Script

Can there be a flying script for a character in Open Surge? (My preference would be for Surge himself) I am trying to make Kirby in Open Surge and I need to make him fly.
Thanks!:)

Bakinator210, signing off!

Re: Tails' Flying Script

Bakinator210 wrote:

Can there be a flying script for a character in Open Surge? (My preference would be for Surge himself) I am trying to make Kirby in Open Surge and I need to make him fly.
Thanks!:)

You can use this script. Change the "Tails" by the name of your character, and also set the animations you need for flying and tired.  After that, play around with the "set yspeed" parameter to change the behaviour of the flight. I'm sure that with little modifications you'll get a nice flight control smile

Piece of cake...!