Hey I´m creating a fps game with some friends and I sucks at scripting : ( how do i do if I want a animation be played when " my character " enter a special area? thanks for reading : ) sry for my english ![]()
Hej
såg att du var svensk.
I alli fall du kanske borde läsa mer om script så du får grunderna i scripting.
Det bli lättare då.
Men tyvär kan jag inte hjälpa dig då jag också är en nybörjare
//Txzzo
and now on English
you shod read more about scripting so you get the bacis.
its get mutch easyer than.
But I cant help you whiv this beasuce im a beguiner.
//Txzzo
Tja : ) härligt att du svarade, vet du någon bra tutorial om java script : )?
detta är basic scripting några sidor lång bara.
//Txzzo
you must make the area have a collider, which is set to isTrigger, so when plaer enters the area animation is played.
Yes, that’s all basically.
Create, for example, a spherecollider and tick the option “isTrigger” so, when your character step into the collider, Unity will launch OnTiggerEnter and you will be able to catch the information implementing OnTriggerEnter() on your character:
Thanks for are answers : ) , but how to do if I want to load next scene when im hitting a " gameobject " like a portal to next level? thanks for reading ^^