-
-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Hack] WASD movement #138
[Hack] WASD movement #138
Conversation
Not ready quite yet, still needs to be a bit smoother. |
But why would I want to make colliosons? I do like the phasing, I've found it quite useful. |
For people who don't want to- well, phase through walls. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could release this hack now with no repercussions.
But let's finish making it smooth and add collisions first. Then I'll hit Merge.
Bet, let's polish this. |
The same Prodigy does it. Just find whatever they check to ensure players don't noclip through walls and use that,. |
Ok better description of the script I described, Repeat 10 The script could be done twice for both the x and y axis, or you could take the lazy route of putting them both in the same repeat (not reccomended). |
Lmao idk if this is scratch code or something, but all I'm seeing is this: Alright, so how would we check that? |
It is scratch code, but it is an idea of how to implement it |
So... how are we going to check if touching wall? |
Signed-off-by: gemsvidø <gemsvido@gmail.com>
resollves conflict by purging bundle lol |
@afkvido try checking it by clicking ahead of where they're going to go, prodigy wont walk the player into the wall. |
Signed-off-by: Eris <eris@erisws.com>
Alright, how would you simulate a click? |
Take control of mouse for a split second and click there. |
So we hijack the mouse, target it to the current location then the target location, and we click, if our pos doesn't change then we hit a wall? |
Then we make that as a completley seperate hack, cuz current WASD works by editing player location variables directly. |
Don't get your hopes up- I haven't actually implemented the click-to-move yet. However, when one hack turns on, the other turns off, it's beautiful! |
Signed-off-by: Eris <eris@erisws.com>
cheatGUI/src/utils/wasd.ts
Outdated
|
||
function ChangeY (y : number) { | ||
for (let i = 0; i < 100; i++) { | ||
setTimeout(() => { _.player._playerContainer.y -= y/100; }, 50); |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you suggest we use?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's wrong with setTimeout?
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lmao yes, it runs a function after a delay,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tis not the same, cuz we are doing it inside the loop, not outside
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🍿
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
am i being sped
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably, but how would I know?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alright we can use async/await for those functions, and put await before literally everything in that function, also use some form of proper wait?
Signed-off-by: Eris <eris@erisws.com>
Signed-off-by: gemsvidø <gemsvido@gmail.com>
@Erisfiregamer1 @donaldli2020 |
Signed-off-by: gemsvidø <gemsvido@gmail.com>
This pull request brings WASD movement into Prodigy Math.