#need helping dealing damage to

1 messages · Page 1 of 1 (latest)

gusty field
#

yo help?

rich tide
#

you still have not actually provided any sense of detail or context required to help you

stable tartan
#

Photos of the scene and maybe !code snippets for what you have towards this damage handling

clear loomBOT
strong jolt
#

you are asking for too many things at the same time, try to go one by one

gusty field
#

i download the bandit asset and im now trying to make the two charectors deal damage to eachother

#

thats my main purpose

gusty field
#

can i get a response?

strong jolt
#

you need to provide some code or ask more precisely

gusty field
strong jolt
#

just something you need help with

#

i feel like you are really new to unity and you don´t exactly know what to do and where to start

gusty field
weak summit
clear loomBOT
#

:teacher: Unity Learn ↗

Over 750 hours of free live and on-demand learning content for all levels of experience!

gusty field
strong jolt
#

yeah so plese start learning instead, this does not make any sense now

gusty field
#

im close to finishing the game just need to make the charector damage eacother

gusty field
strong jolt
#

we have no clue what your game looks like not even if 2d or 3d

gusty field
#

this is the game

strong jolt
#

put a collider (isTrigger) on the weapons and listen for the OnTrigger2D event

#

this would be the easiest and most basic method to do

weak summit
# gusty field not that bro

If this is literally your first day using Unity you should be doing that instead of whatever you're currently doing

gusty field
#

component?

gusty field
strong jolt
#

yeah you need to learn the basics of unity

gusty field
stable tartan
gusty field
#

i ran out out it

weak summit
gusty field
#

i got a comp science exhibition

stable tartan
#

And when did you start this game that you have no time left for?

gusty field
#

and i said i would do a 2d fighting game

weak summit
#

someone oughta tell them to give people more time

gusty field
gusty field
stable tartan
weak summit
#

You thought incredibly wrong

gusty field
#

i had a lot of work so i thought i would do today

weak summit
gusty field
#

now what

stable tartan
weak summit
#

Hell four days isn't really enough time to make a decent 2D fighting game, I wouldn't even try to do that in the time limit provided

gusty field
stable tartan
gusty field
stable tartan
#

note, not sure how you plan to handle animations but this wouldn't have the sword move unless you already got that

gusty field
#

when i clcik the key for attak it plays it

stable tartan
#

in the Ontrigger make it check if it's the enemy by using a if statement and call a function that the enemy has that removes some of it's health

gusty field
stable tartan
#

none

#

a function / method go in the class outside of other functions like start or update, and below the declared variables

gusty field
#

the ontrigger function

stable tartan
#

a if statement that looks for the enemy

gusty field
#

!code

clear loomBOT
stable tartan