Next project help - super noob needs your excellent minds plz

awright awright ( Matthew McConaughey voice )

sup playcanvas fam, coders, scripters, frequent dark web guests! please be patient with a super noob (me) for i am no coder

i humbly ask for you to grace me with your beautiful minds for my next big project.

basically i need these scripts plssszzs:

1.) enemy AI script
2.) enemy AI detecting player script
3.) player health bar script
4.) enemy AI health bar script
5.) damage dealt to player on collision script
6.) damage received from player on collision script
7.) damage dealt to enemy AI on collision script
8.) damage received from enemy AI on collision script
9.) player dying/ resetting after health bar reaches zero script
10.) AI dying/ disappearing after health bar reaches zero script

hmm i think this is all i need for now. i do have questions but imma experiment on some thing to find out for myself, thanks all!

Hi @simplykit!

You can take a look at my Basic enemy AI example project.

The project also included some preparation for this.

https://playcanvas.com/project/870482/overview/basic-enemy-ai

1 Like

wooH! thanks buddy! imma try these! cheers

@Albertos so i just copied your enemy entity since making it from scratch failed lolz it works! lol

btw i have this working on a 1st person view game

the AI went berserk and flew around the room and goes through walls lol

You probably need to adjust some settings.

Do your walls have a rigidbody and collision component?

1 Like

yep, actually i removed AI enemies for now. it got too complicated for me lolz

yes , i applied collision and rigid body, i think i messed up something again. didint know that when i make change on an entity it is applied on all entities even from other scenes, i messed up.

If you share the project with the AI, I can check what’s wrong.

1 Like

woops lolz too ladte buddy deleted the project. thanks for the offer

imma start working on new projects, i appreciate ya