#zeuschrist0836

1 messages · Page 1 of 1 (latest)

dusky hare
#

like this?

feral solstice
#

ye

dusky hare
#

ok well heres my set up

feral solstice
#

now I don't really know what youre doing, I just opened your code and pointed out the non-logic that i saw

dusky hare
#

ok np

#

so im trying to get flicker jab to play, then flicker jab 3, then flicker jab_2. (i messed up the names). so basically trying to get a 1>2>3 combo while having it reset if the player stop pressing the mouse0

feral solstice
#

so while you hold mouse0, you want it to go 1>2>3

dusky hare
#

no while clicking i want it to go 1>2>3

feral solstice
#

EDIT: I wrote this for continuous mouse hold, not clicking

You could do this like this:

  1. Add a bool to your Animator controller, call it "Attacking" for example.
  2. In your Update, do animator.SetBool("Attacking", Input.GetMouseButton(0));
  3. Make transitions from attack to the next, and add a condition where Attacking is true. Add another exit transition if Attacking is false
#

NOTE: Use GetMouseButton not GetMouseButtonDown. The latter one only returns true ONCE on the frame that you press the key.

#

In this case you want to see if it's continuously held down, and should use GetMouseButton or GetKey

#

(I see you were usingInput.GetKeyDown(KeyCode.Mouse0), you can just use GetKey)

feral solstice
dusky hare
#

or do u think triggers would be better? i only did bool cause someone said bools would work better

feral solstice
#

I'm thinking you might wanna use Triggers

#

just remember to use animator.ResetTrigger() if you need to cancel a trigger

#

Yeah go with trigger

#

If youre dealing with single clicks, trigger is better

dusky hare
#

ok so i know for sure triggers are better.

feral solstice
#

In this case, probably yes

#

They are just Bools that reset to false when used.

dusky hare
#

cool cool, progress. thanks

radiant raptor
#

yeah I didn't mean 3 bools lol

#

just 1

#

i was showing u this example

#

forgot to hit send..

dusky hare
radiant raptor
#

you should have an animation event on the last combo

#

that switches to false

dusky hare
#

oh wait but thats holding isnt it? im trying to tap for each rather than hold

radiant raptor
#

do u wanna tap once ?

#

or while is playing

#

u have to tap 3 times?

#

you gotta be specific

dusky hare
feral solstice
dusky hare
#

right

#

i wasnt gonna ask until i found something similar tomake an effort but i keep getting trigger colliders for some reason. how do i go about having the triggers activate one after another?

feral solstice
#

do you mean trigger conflicts? (trigger collider is a different concept)

feral solstice
#

if you are using multiple triggers, use ResetTrigger on the ones you dont want

#

to make sure they are false

feral solstice
#

also I'm pretty sure you can just use one trigger for these all, instead of like 3 separate triggers

dusky hare
#

oh for real? ill look into that too

feral solstice
#

yeah, well, every time you use a trigger, it gets set to false, so you can use it in the next transition

#

(still need separate Transitions ofc, but you can reuse the same trigger parameter)

dusky hare
#

ok good news i got it. as soon as i used the same parameter instead of 3 it works. now it exits after the first animations but not the second or third

#

actually let me try something

#

nvm