#Movement methods

22 messages · Page 1 of 1 (latest)

rigid shore
#

Does anyone know any good ways to move something that doesnt make it clip through stuff? Like when you just press play you can walk around with your character just like that. I dont really know any ways other than manipulating the cframe but I know velocity exists. Do you recommend velocity? A little bit of backstory: I wanna make my own character sort of. A top down rpg game but I dont want people to be able to clip through walls and now I have made my movement but it doesnt stop at walls for it uses CFrame.

heavy shale
rigid shore
heavy shale
rigid shore
heavy shale
#

FSM = finite state machine

#

Basically recreating the humanoid

rigid shore
#

what is a finite state machine

#

kinda

#

like just making my whole own character with my code for movement camera movement etc

heavy shale
#

A finite state machine is a term used in computer science to say something can “think” yet it only had a limited amount of answers.
Like an elevator

#

A 3 story elevator only has 3 states. 1st story, 2nd and 3rd. If it’s on the first then it needs to go to the second, then it can go to the third

#

It’s a very basic example of a way to get the behaviour you want

#

a 3 state npc (very common in games) does the same. E.g. a lot of games make a game not go from “aggravated” straight back to “guarding”, often they first enter a “searching” state

#

Which would look like this

#

While an elevator would look more like this

rigid shore
#

I guess so yes

placid sedgeBOT
#

studio** You are now Level 1! **studio

rigid shore
#

but as in

#

you can go

#

in four directions but now thinking about it

#

It doesnt really matter lets say