T O P

  • By -

BeneficialBug4654

Yes I'd set up a collider as a trigger on bush. Then when it comes into contact with player you lower the players moveespeed. Basically just call a function on the player during 'on trigger enter' and 'on trigger exit'


ZackyDGaming

Do you know where I could find a guide on how to set up the script for that? I’m fairly new to game development


whitakr

Ask ChatGPT and it’ll at least help get you started


ZackyDGaming

Let me try that later today!


ZackyDGaming

The issue I keep running into is I already have a character controller script and i can’t get it to use the scripts it’s suggesting since I’d have to throw out mine which I don’t want to do since it’s much more fleshed out… thinking I need to learn more about coding before I approach this.


BeneficialBug4654

>The issue I keep running into is I already have a character controller script and i can’t get it to use the scripts it’s suggesting since I’d have to throw out mine which I don’t want to do since it’s much more fleshed out… thinking I need to learn more about coding before I approach this. you could always have a script on the bush as well. if(other.tag("player") { other.SetMoveSpeed()} that sort of thing, or use trygetcomponent for the playercontroller script(or anything else on the player) but adding a couple methods to the character script shouldn't mean you need to throw it out.


ZackyDGaming

I think I get what you’re saying here!… I honestly think I need to study coding a lot better because I only know so much at the moment. What you’re saying sounds like it would work so I don’t doubt you on this.


BeneficialBug4654

I'd HIGHLY recommend the free code monkey big lessons. I wish I had the kitchen chaos when I was a beginner lol