Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / diffrent attack per mouse click help

Author
Message
Daniel wright 2311
User Banned
Posted: 20th Oct 2011 01:23
I am doing my best to make this work, I need diffrent attack animation per mouse click, here is what i am trying to do but all it does is loop the last animation.

this is suppost to switch between each animation per click back and forth.



my signature keeps being erased by a mod So this is my new signature.
Lucas Tiridath
AGK Developer
17
Years of Service
User Offline
Joined: 28th Sep 2008
Location: Kings Langley, UK
Posted: 20th Oct 2011 01:48 Edited at: 20th Oct 2011 01:49
Well are the two lines right next to each other like that in the full source? Because if they are then that's your problem. For example:





Thus, you see that regarless of which way the switch is to start with, the result will always be atte = 0. You would be better served by something like:



Hope that helps.

Daniel wright 2311
User Banned
Posted: 20th Oct 2011 01:57
thanks that helped. becouse now I see it not holding the value,thanks for your help.

my signature keeps being erased by a mod So this is my new signature.

Login to post a reply

Server time is: 2026-07-10 16:57:49
Your offset time is: 2026-07-10 16:57:49