Problems with shooting animation (not running, just standing)
DuendeArkano
Member Posts: 52
Hi again people!
Im having a tiny issue with a normal shooting animation;
The idea its simple, the actor, quiet, press x = shooting animation, easy right?
The problem is when i press x the animation who is shown doesn't look like a normal animation, its kind of glitched, like if were too fast, or jumping between the frames or maybe its just a start/stop again and again... i dunno... the animation have 9 frames, like the others who works well.
What i do??
I've tried with 2 different ideas:
First:
[Shooting]
When All conditions are valid
-Key X down
-Another conditions, blablabla
Then:
Change attribute Shooting to True
[Shooting Posse]
When Shooting is true
Animation
After animation Shooting False
Second:
When x is Down
Animation
I tried to put some timers on the both ideas, change the fps... but nothing changes too much
Any idea??
Thanks in advance!!!
Im having a tiny issue with a normal shooting animation;
The idea its simple, the actor, quiet, press x = shooting animation, easy right?
The problem is when i press x the animation who is shown doesn't look like a normal animation, its kind of glitched, like if were too fast, or jumping between the frames or maybe its just a start/stop again and again... i dunno... the animation have 9 frames, like the others who works well.
What i do??
I've tried with 2 different ideas:
First:
[Shooting]
When All conditions are valid
-Key X down
-Another conditions, blablabla
Then:
Change attribute Shooting to True
[Shooting Posse]
When Shooting is true
Animation
After animation Shooting False
Second:
When x is Down
Animation
I tried to put some timers on the both ideas, change the fps... but nothing changes too much
Any idea??
Thanks in advance!!!
Comments
@DuendeArkano
Hi again Duende; try this (close to what you have):
[Shooting]
Rule: When key x is down
-Another conditions, blablabla
Change attribute Shooting to true
--------
[Shooting Posse]
Rule: When Shooting is true
Animate behaviour
Timer: After ----time it takes for your frames to run----seconds
Change attribute Shooting to false
Hope that sorts it for you. :-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Im sorry to say the timer idea doesnt work
i get crazy with this because im using the same rules and procedures with the left-right movement, or jump, but this is kind of tricky and i don't get where's the clue...
Any other idea?
Maybe a video could help about my situation?
Hmm, strange, I've just checked it with a small test and it's working fine... (I can attach the file for you to look at if you like, although it's very straightforward and no more than the simple rules suggested...)
When you say the timer idea doesn't work, what's still happening that shouldn't?
Edit: reading your last comment, you have to make sure the two rules are separate, not one nested in the other in this case; otherwise your animation will only run for as long as the key is being pressed...
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
This could be the reason! because the animation looks like that, but anyway, i have each rules separately from the other, even i tried to put them out of all groups, but nothing happens.
Here i have some info who could be helpful:
A video with the error it self:
And the way i have the "code":
This is the whole actor behavior: http://imageshack.us/photo/my-images/822/capturadepantalla201212r.png/
Its a copy from the "platorm template"; SHOOTING TEST and POSSE-SHOOTING ANIMATION TEST are the keys of the problem, but this image gives you an idea how's the code.
SHOOTING TEST: http://imageshack.us/photo/my-images/850/capturadepantalla201212u.png/
POSSE-SHOOTING ANIMATION TEST: http://imageshack.us/photo/my-images/145/capturadepantalla201212c.png/
Let's see if this could be helpful for the solution
If not, and if its not a problem for you, send me the file you talked on the previous post and i'll figure it out how to do it well.
Thanks in advance!!!
Hi Duende, just loving the graphics! I haven't checked the other links yet but will now, and see if I can help out.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Ah, in your posse-shooting animation test, in the Timer behaviour, you have it set to Every 1.2 seconds. First to say, this should be set to "After"; and also, as you've 9 frames of animation, and you have the animation set to 10fps, the sequence will be finished in less than a second, not more.
So, Timer: After 1 second, change attribute. Hope that sorts now for you.
PS, as a suggestion, change your fps to 9; that way, it's more precise for the timer, i.e your sequence will finish after exactly 1 second (not nine tenths of a second as it is at the moment)
PPS the way you have your Rules at the moment, if the user presses the x key while the animation is running, it won't make any difference and won't respond while the animation is still playing. If that's what you're after, that's fine; but if you want another press of the x key to interrupt and start the animation over, then let me know and I can adjust the Rules for you accordingly.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
I was trying with the changes you suggested but nothing changes
I was also trying to track self.shoothingGround (the trigger to shoot) in order to detect if the status changes from false to true, but or the tracker does not work, or the value does not change. Then i tried traking linear.y with the same result. (I answer my old post about tracking with this info --> ( http://forums.gamesalad.com/discussion/51442/little-help-with-an-old-issue-showing-attribute-values-on-screen#latest )
In the other hand, about the question of re-start the animation the answer is yes, jajajaja, it would be the next step after normal shooting animation, the interrupt-start again animation, so if you can give me a clue about how to do it, maybe i can re-start again with the rules and maybe make it work once for all jajajaja
As i tell you on the other post, sorry to bother too much with this, and thousands of thanks in advance
So if you want the x key to interrupt and start the animation again from the beginning if it's already running, try the following and hopefully it'll work out for you (this is off the top of my head but should work):
Rule: When key x is pressed
Rule: (nested in the above) When self.Shooting is true
Change attribute self.Shooting to false
Change attribute self.Shooting to true ---to re-trigger the rule below
Otherwise
Change attribute self.Shooting to true
---
Rule: When self.Shooting is true
Animate Behaviour
Timer: After 1 seconds --- Run to Completion unchecked
Change attribute self.Shooting to false
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
I will start with this, from zero, right now. Let's see if i can make it work!!
Im thinking to buy the league of evil template to gets some ideas from there if nothing works jajajajjaa
I'll tell you something soon!
Thanks again
i tried with your idea of animation and at the begining does not work, but, i decide to switch off all the Actor control and leave enabled only the Collisions Rules and our famous animation, and abracadabra, the animation works, so... the problem or the conflict looks like to be the Actor's Control (left-right, jump, determine if grounded, and posse states), this controls are copied literally from "Platform Template"
And i think i found the problem..
I disable the posse states from Actor's Controls rules, this posse states is controlled by a timer, if i disable the timer, the animation works, but not all the rules placed down the timer ^___^ jajajaja
Here's posse states:
General view: http://imageshack.us/photo/my-images/96/capturadepantalla201212a.png/
Part1: http://imageshack.us/photo/my-images/689/capturadepantalla201212yn.png/
Part2: http://imageshack.us/photo/my-images/94/capturadepantalla201212t.png/
Part3: http://imageshack.us/photo/my-images/6/capturadepantalla201212n.png/
Im afraid that maybe i need to find a new way to do the posse states, but maybe your wise save my ass ^___^