GithubHelp home page GithubHelp logo

The Master - Animation issue about fo1in2 HOT 8 CLOSED

rotators avatar rotators commented on July 23, 2024
The Master - Animation issue

from fo1in2.

Comments (8)

burner1024 avatar burner1024 commented on July 23, 2024

What's ugly about it?

from fo1in2.

Lexx2k avatar Lexx2k commented on July 23, 2024

Well, the obvious position-teleport when you enter the map via Morpheus. He is teleporting right in your face.

from fo1in2.

burner1024 avatar burner1024 commented on July 23, 2024

Sorry, I don't remember the location that well. Teleport isn't obvious to me from screenshots. Is there no actual "stand-up" animation, just an instant switch from one to another?

from fo1in2.

Lexx2k avatar Lexx2k commented on July 23, 2024

Yes, it looks exactly like in my screenshot above. Enter the location and Master is dislocated. Script runs "animate_stand_obj(self_obj)" and after two or three seconds, the Master sits in correct position.

I don't know why this transition takes so long. I'm assuming it's an idle animation that first has to play through. I've tried setting a frame directly, and avoiding the animate_stand_obj(), but that didn't really change a thing.

Basically... no idea why this happens. Fiddling with the graphic files directly wasn't working either. Maybe a possible workaround is to make completely new frames with fixed size and 0,0 offsets. But I didn't want to go that far now.

from fo1in2.

burner1024 avatar burner1024 commented on July 23, 2024

Strange, I vaguely remember seeing him standing up, but I could be mistaken.
Well, worst case, you can just copy standing animation to idle, so that they are the same...

from fo1in2.

Lexx2k avatar Lexx2k commented on July 23, 2024

Ok, as always the solution to mankind's problems was fairly simple.

The thing with animate_stand_obj() is that it apparently plays the full animation before something happens... usually because you want to play the full "stand up" animation for the critter before the game continues with anything else.

So what I did now was to remove that and replace it with a generic animation call...

   reg_anim_clear(self_obj);
   reg_anim_begin();
   reg_anim_animate(self_obj, ANIM_stand, -1);
   reg_anim_end();

... because that one doesn't have the critter wait until it plays till the end, it happens instantaneously.

Result: Master gets moved to his correct position right on the first frame and thus the issue is solved.

from fo1in2.

wipe2238 avatar wipe2238 commented on July 23, 2024

That was quick :D

from fo1in2.

Lexx2k avatar Lexx2k commented on July 23, 2024

Well, wish I had thought of that before spending hours on shifting offsets in frm files.

from fo1in2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.