Scripts / [SOLVED] Needing Help with scripts and movement

Author
Message
SpaghettiLord1010
7
Years of Service
User Offline
Joined: 20th Apr 2019
Location:
Posted: 20th Apr 2019 15:26
Hi!

I want my player to like always jump, but it should jump higher while spacebar is pressed.
Also: is there a way that I can make it that the player can't get damaged by falldamage and it would be really cool, if there was a way to let it bounce e.g. from a slope like a bouncy ball? (See attached picture)

It'd be awesome if someone more experienced could help me, I'm still a noob.

Thank you!

The author of this post has marked a post as an answer.

Go to answer
PM
AmenMoses
GameGuru Master
10
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 20th Apr 2019 15:57
The player controls are all in the gameplayercontrol.lua script.

Been there, done that, got all the T-Shirts!
PM
SpaghettiLord1010
7
Years of Service
User Offline
Joined: 20th Apr 2019
Location:
Posted: 20th Apr 2019 16:06
Ok, so I figured out where that file is and I looked at it a little, but I don't really know what actually is what I wanna change, I think one of these?

GetGamePlayerControlJumpMode
tplayerjumpnow

I'm really new to that stuff, but I believe if I set one of these always to 1 or so the player will keep jumping?

And what about the other stuff? Is that more technical? Do you maybe know something similiar?

Thanks for the quick answer!
PM
AmenMoses
GameGuru Master
10
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 20th Apr 2019 18:11
This post has been marked by the post author as the answer.
It is quite a daunting script I grant you, best way is to make a copy of it so you can put it back later if need be, then change small parts of it to see what happens.

I think you will find fall damage in there somewhere as well.

The bouncing part would have to be faked somehow.
Been there, done that, got all the T-Shirts!
PM
SpaghettiLord1010
7
Years of Service
User Offline
Joined: 20th Apr 2019
Location:
Posted: 20th Apr 2019 18:16
Thanks for the answer, I think I'll just take another engine then, will probably be better for the game, I'll tinker with it some more thought.

Have a nice Evening!
PM

Login to post a reply

Server time is: 2026-06-08 18:29:55
Your offset time is: 2026-06-08 18:29:55