![]() |
Gani System: Replacing Anis
Most people can agree that when scripting a movement system, the best time to change a player's animation is when initializing movement, or when stopped moving. Using a custom movement system, when I bulit the animation system, I kept in mind that I would want to have a means of replacing the player's ani. However, there was one factor I wasn't expecting. SETBACKTO.
Alright. So I have a list of global vars of anis used by the default movement system: gani_ganiname = "ganiname" In a first step to solve this problem, I created a list of global vars for the default values of these anis. the gani_ganiname is for replacing, the gani_ganiname_def is for storing the default value of that gani (even though it's well implied). However, I don't really know what my next step will be. perhaps take all of the gani_vars and replaceani(gani_name_def,gani_name)? There really ought to be a simpler way to do this -_-.. LOL, so I did that, and it didn't fix anything. |
Is there anything wrong with, for example, upon the player pressing left, changing the dir to 1, and setting the gani to walk? And why would you want to replace any animations in the first place? I've made a movement system before. Just thought I'd say that before you started questioning my experience.
|
Quote:
Well, the two places I've used it: 1. replace idle with drunk idle 2. replace walk,idle,sit with the a similar gani that carries a lantern. And believe me, I hired you before, but only as a trainee because your experience wasn't that great. I have authority of opinion on the grounds of your experience. |
Example:
PHP Code:
|
Quote:
|
Hrm, use a client. variable to store the gani they should be using, and just use client.gani_ganiname = "newgani"; to replace it?
|
Quote:
|
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 11:45 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.