#HOW TO USE GLOBAL ANF PLAYER VARIABLES

1 messages · Page 1 of 1 (latest)

delicate cedar
#

Pls guys idk what im i doing🙏😭

abstract surge
#

Well they can be used for a lot of things,what are you trying to do?

delicate cedar
#

Save,do how mario kills wnemys by jumping on there heads and more

abstract surge
#

Like when he kills a enemy you win 1 point?

#

I know how to do that

delicate cedar
#

I want to do like how mario kills the enemies

#

In 3x

#

Bc my ganes chracters are basically cooked with out this

abstract surge
#

Jump on the head and give damage?

#

This don't require player variables

#

But I'll send the script for you

delicate cedar
#

Ok

abstract surge
#

Create a component and add a coordinate attribute

#

Then add two trigger's

#

One for when object is created and one for when player starts contact

#

Add a Collison detection too

#

On the top of the head of the character as a child objec

#

Add this script on the when object is created trigger

#

And this one on the when player starts contact

#

Result

delicate cedar
#

Thats it

#

Ok

#

And what about a little jump

#

Like how mario does it

#

And btw thx i helps me alot