#navarone the goat

1 messages · Page 1 of 1 (latest)

astral forge
#

yo mb for pinging

civic zephyr
#

alr let me see the setup and you still didnt explain what the purpose of this animation is

#

because from what you describe if you spawn a prefab wouldnt PlayOnAwake be sufficent ?

astral forge
#

Okay so basically everytime this button is clicked two animtions occur the tenticle and water

#

But I want the water to animate ONLY when it pops out the of pipe

astral forge
#

I can test it out

#

public bool or trigger?

civic zephyr
#

is the water prefab?

#

im confused

#

thought u kept spawning it

#

myb so what is wrong putting the Play transition in the button again

astral forge
astral forge
#

but let's say a water spawns out the pipe and I click glass

#

it does the glass animation where glass enters the bin

civic zephyr
#

when does glass enter bin

#

so you dont want it on the button click but when it enters?

#

or

astral forge
#

Or hierachy

astral forge
#

I want them to spawn and when I click the button they animate and disappear

civic zephyr
#

ok yeah so call the SetTrigger

#

you probably also need transition to go back to empty state with no params (just exit time)

astral forge
#

Okay thank you

civic zephyr
#

or whatever you called your parameter for transition

astral forge
#

But it is spawning in and not instantly falling into the trash

civic zephyr
#

could be issue with trigger

astral forge
civic zephyr
#

this would be much simpler with code

astral forge
#

I tried doing this with event orders

#

but that just completely removes it

#

I want the cloned object to animate just like what happens when I click the button

#

I tried doing this with event orders

#

video is very laggy hold up..

civic zephyr
#

wdym event orders?

astral forge
#

I don't want it to to delete though

astral forge
#

😭 ..

civic zephyr
#

the video is laggy but not the problem lol I still dont know what is the relation beteen the animations and the buttons

#

just trying to understand

astral forge
#

But the animation doesn't play on the instantiated object..

civic zephyr
#

another animatorthat isnt the spawned object

astral forge
#

Yeah someone told me to do an add.component with the instantiate script

civic zephyr
#

nah

#

just add a method to the object

#

and when the method runs it controls its own animator

astral forge
#

All I'm doing is instantiating a prefab and I'm trying to add an animation to it

civic zephyr
#

yeah mate you're gonna have to go through some basic courses

#

this will be a lot to explain references lol

astral forge
#

Alright

#

(I have one day to learn this and its 1 AM rn) 🔥

civic zephyr
#
ScriptOnTheObject myInstance = Instantiate(prefab etc..)
myInstance.PlayAnimation();```