Page 1 of 1

How?

Posted: Sat May 13, 2017 4:44 pm
by PersonNamedUser
How do you enable peach to be able to spin jump? Does someone have a code of how?

Re: How?

Posted: Sat May 13, 2017 6:01 pm
by HenryRichard
Not 100% sure how you would do it, but you could check if the player just jumped and is holding the alt jump key, and then set the spinjump state to true.

Re: How?

Posted: Sat May 13, 2017 6:03 pm
by kr4k1n
timocomsmbx2345 wrote:ask Pixel fkjfhdskjbvhdfkjshflkhsdkljhfvkjlsdahfkjshdkPESTfjbsadnmdbkjaskjfds
I don't think that user exists..

Re: How?

Posted: Sat May 13, 2017 10:12 pm
by PixelPest
HenryRichard wrote:Not 100% sure how you would do it, but you could check if the player just jumped and is holding the alt jump key, and then set the spinjump state to true.
Basically this.

The following should work:

Code: Select all

function onInputUpdate()
   if (player.character == CHARACTER_PEACH) and (player.altJumpKeyPressing) and (player:isGroundTouching()) then
      player:mem(0x50, FIELD_BOOL, true);
   end
end 

Re: How?

Posted: Sun May 14, 2017 6:31 am
by Hoeloe
PixelPest wrote:
HenryRichard wrote:Not 100% sure how you would do it, but you could check if the player just jumped and is holding the alt jump key, and then set the spinjump state to true.
Basically this.

The following should work:

Code: Select all

function onInputUpdate()
   if (player.character == 3) and (player.altJumpKeyPressing) then
      player:mem(0x50, FIELD_BOOL, true);
   end
end 
That will, I think, also allow you to turn a regular jump into a spinjump. You may also need to test player:isGroundTouching(). Also you should use CHARACTER_PEACH, rather than 3.

Re: How?

Posted: Sun May 14, 2017 3:13 pm
by timocomsmbx2345
Did my posts get deleted here?

Re: How?

Posted: Sun May 14, 2017 5:51 pm
by Mable
Probably bc it was really uh not needed to say in a nice way?