#How would I go about making a mario or sonic like momentum system?

1 messages · Page 1 of 1 (latest)

jolly seal
#

Im trying to make it to where it plays this animation I made whenever the player goes in the opposite direction, I dont know how to make this happen and I just need advice, I already have a good sonic like script.

pseudo bane
jolly seal
#

well I mean like

#

when they stop, how would I make it slide then play that anim?

#

like uh

pseudo bane
#

ohh

jolly seal
#

sorry if I wasnt clearer ;-;

tardy shaleBOT
#

studio** You are now Level 2! **studio

pseudo bane
#

wait lemme think ts through

jolly seal
#

alr!! ^^

#

take ur time, Im making emotes rn to wait XDD

pseudo bane
#

are you good at scripting tho cause this can be pretty complicated

jolly seal
#

sorta...?

#

I think I can handle it >:DDD

#

as long as it works, thats all I need :D

pseudo bane
#

Okay so how I would do this is:
1st get the players Velocity
2nd get the players Input direction (you have to write a function for this where you calculate it with userinputservice, camera, etc.)
3rd compare them with the dot product to check if they’re opposite

#

this should work if you do it right I cant test it myself tho cause im kinda in my bed on my phone

jolly seal
#

Its alright!!!

#

would you happen to know what tutorials I could possibly use?

#

Wait nvm I can do that ;-;

#

Thank you so much!!!!

pseudo bane
#

I think you might have to go with the roblox documentation with this 1

#

or AI but you really have to try everything it gives you if it works and try to understand it

jolly seal
#

alright!!

#

The AI usually doesnt work so Imma go to documentation ;-;

pseudo bane
#

theres no such thing as input direction like i mentioned tho you have to figure the calculations out yourself