#https://hatebin.com/iqzqldzyzm problem with unity animator and forces need helps pls

1 messages · Page 1 of 1 (latest)

worthy dagger
#

https://hatebin.com/iqzqldzyzm this is giving me the error (see error) and here is the animator menu please help ive been on this stuck for ages 2 people tried to help but couldnt. sometimes when that error is gone it goes to a left handed error type thing i dont have ss of error but please help i might not be on after 15 min but will be there tommorow <33 i just needs helps blushie

#

welp I'm going to go now ping me in this thread if you can help out ❤️

eternal edge
worthy dagger
#

i lied im not going out rn

#

lol

#

wdym no func spec?

eternal edge
#

Open your player model import settings - animations tab

worthy dagger
#

ok 1

#

how do you get to import settings

#

XD

eternal edge
#

Find your player model asset and select it

worthy dagger
#

like the sprite render?

#

player obj?

#

cause the model is changing

#

with animations

#

is it not?

eternal edge
#

Oh, I thought it was a 3d model

worthy dagger
#

no 2d lmao

#

sorry shouldve said

#

mb

eternal edge
#

What are the animations then? Did you make them in unity?

worthy dagger
eternal edge
worthy dagger
#

kk

#

so

eternal edge
#

Take screenshots or record video

worthy dagger
#

just sprites put into splice to animator

#

animator to player

#

atate is for idle running jumping and falling

#

attack is a true or false

#

take dmg is trigger

#

i got the take dmg to work

#

i want to implement knockback of character when he take dmg

#

or

#

stop moving

#

or both overide move controls but most likely the stop

#

Glitch tried to help but couldnt

eternal edge
#

That's not what I asked.

#

Oh nvm, you took a screenshot of the animations too

worthy dagger
eternal edge
#

Open each of the animations and take a screenshot of the animation window

worthy dagger
#

1 more

#

v

#

is that what you ment?

eternal edge
#

Yes

#

Attack1 and running animations have an animation event at the very end.

#

Select each of them and take a screenshot

worthy dagger
#

it is endattack()

#

but here

#

whoops event not ment be on runnung

#

it dowsnt affect though

eternal edge
worthy dagger
#

i removed the event

#

for running

eternal edge
worthy dagger
#

last frame of animation of attack1

eternal edge
#

Method

worthy dagger
#

oh

#

wait

eternal edge
#

In code

worthy dagger
#

uno sec ❤️

#

i think that helps right?

#

anyways its ment to end the attack after 1 full animation is done

eternal edge
#

Is that on the same GameObject as the animator?

worthy dagger
#

yes its in the playermovement script

#

where thats attacked to animator

#

heres hatebin

eternal edge
#

Ok, so does that solve the error?

worthy dagger
#

no

#

here

#

this is on player hea;th

#

is it not ment to be?

#

the IEnu,

#

IEnumerator

eternal edge
#

Wdym? Are we solving a different issue now..?

worthy dagger
#

no lol

#

ok here let me run you down

#

this

#

is here

#

we are trying to fix the I Enumerator on player health so the character takers knowback on hit

#

or make him stop durring the takedmg animation

eternal edge
#

I thought we are fixing the error...

worthy dagger
#

this is the code

#

oh no lol

#

ive been trying fix this for hours

#

im just stupid

eternal edge
#

Well, fix the error first, so that it doesn't get in the way.

worthy dagger
#

idk how

eternal edge
worthy dagger
#

lol ok here so that is takedmg for the play say player gets hit by enemy he takes dmg he runs the animation of getting hit but can move freely durring it and isnt knocked back

eternal edge
#

That doesn't answer my question...😩

worthy dagger
#

endattack method is in PlayerMovement

#

lmao

#

are we on diffrent pages lol

#

im so confused

#

wait

#

yeah

#

line 69 *(nice) to 72

eternal edge
#

Take a screenshot of you player with all the components visible

worthy dagger
#

you get max hp when game start

#

all my scripts too

#

if you want them

#

@eternal edge did you die of reading bad code?

eternal edge
#

Ok

worthy dagger
#

lmao

#

anyways

eternal edge
#

Try removing all animation events from your animations and see if that fixes the error

worthy dagger
#

it fixes it

#

but i have no ani now\

#

ok so here i can play but the takedmg animation doesnt work anymore'

#

Health no go down

eternal edge
#

Ok, now add the animation event again. But make sure that it's configured properly

#

Select the animation event and take a screenshot of your inspector.

worthy dagger
#

now i add trans

#

still no work

#

i do gotta head out real quick

#

any ideas?

#

@eternal edge

eternal edge
#

You didn't do what I asked

worthy dagger
#

wdym

eternal edge
#

Select the animation event and take a screenshot of the inspector

worthy dagger
#

this?

eternal edge
#

That's not the animation event

eternal edge
worthy dagger
#

events

#

k

#

for attack1

eternal edge
#

Ok. And you're sure there are no other events that have missing functions?

#

Double check

#

Also make sure there are no compile errors in the console.

worthy dagger
#

1 only event in all animations 2 same error

eternal edge
#

Did you clear the console?

worthy dagger
#

how you do?

#

oh

#

nvm

#

yeah

#

same error

eternal edge
#

Are there any other errors?

worthy dagger
#

no jsut that being spammed millions of times basically

eternal edge
worthy dagger
eternal edge
#

Okay.

worthy dagger
#

all coding everythjing

#

only play to test

eternal edge
#

Well, if the error still appears, then there's something wrong with an animation event.

worthy dagger
#

ok

#

uhh ill figure it out

#

i gtg though

#

this thread will be left open though

#

just if you do have any idea

#

night my guy thanks for trying

worthy dagger
#

hello

#

ok soo

#

this is aids

eternal edge
#

What got worse?

worthy dagger
#

ok so i tried something diffrent

#

player heath into main script, i dont know weater to keep monsterdamage cause now i have someing in my main script where it checks gameobjects name abd does x ammount, death animation is just playing on start, here look for yourself lol

#

lol ik this is aids

#

sorry

#

looooll

#

proof on what i touch is destroyed

eternal edge
#

I've no clue what you just said...

#

But judging from the warnings and errors, you should fix missing scripts first, then again, fix your animation event.

worthy dagger
#

yeah

eternal edge
#

If you want, I can have a look at your project regarding the animation event. You'll need to upload it to GitHub or plastic.

worthy dagger
#

how do i do that i have a githun

eternal edge
#

Look up a tutorial on how to upload it to GitHub.

worthy dagger
#

k

worthy dagger
#

ughhh

#

im way to stupid for this

#

@eternal edge

#

this is annoying

#

lmao

#

imma deal with this tomorrow

#

night