How?

This is the place for discussion and support for LunaLua and related modifications and libraries.

Moderator: Userbase Moderators

Forum rules
Before you make a topic/post, consider the following:
-Is there a topic for this already?
-Is your post on topic/appropriate?
-Are you posting in the right forum/following the forum rules?
PersonNamedUser
Reznor
Reznor
Posts: 2882
Joined: Fri Feb 27, 2015 8:07 pm

How?

Postby PersonNamedUser » Sat May 13, 2017 4:44 pm

How do you enable peach to be able to spin jump? Does someone have a code of how?

HenryRichard
Reznor
Reznor
Posts: 2843
Joined: Mon Dec 23, 2013 12:09 pm
Flair: Is this where I type my password?
Contact:

Re: How?

Postby HenryRichard » Sat May 13, 2017 6:01 pm

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.

kr4k1n
Reznor
Reznor
Posts: 2927
Joined: Sun Dec 11, 2016 8:02 pm
Flair: cats are cool
Pronouns: he/him/his
Contact:

Re: How?

Postby kr4k1n » Sat May 13, 2017 6:03 pm

timocomsmbx2345 wrote:ask Pixel fkjfhdskjbvhdfkjshflkhsdkljhfvkjlsdahfkjshdkPESTfjbsadnmdbkjaskjfds
I don't think that user exists..

PixelPest
Link
Link
Posts: 7111
Joined: Sun Jul 12, 2015 5:38 pm
Flair: Tamer of Boom Booms
Contact:

Re: How?

Postby PixelPest » Sat May 13, 2017 10:12 pm

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 
Last edited by PixelPest on Sun May 14, 2017 8:59 am, edited 1 time in total.

Hoeloe
Phanto
Phanto
Posts: 1465
Joined: Sat Oct 03, 2015 6:18 pm
Flair: The Codehaus Girl
Pronouns: she/her

Re: How?

Postby Hoeloe » Sun May 14, 2017 6:31 am

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.

timocomsmbx2345
Foo
Foo
Posts: 853
Joined: Sat Feb 06, 2016 1:44 pm
Contact:

Re: How?

Postby timocomsmbx2345 » Sun May 14, 2017 3:13 pm

Did my posts get deleted here?

Mable
Luigi
Luigi
Posts: 5806
Joined: Sat Dec 21, 2013 4:23 am
Contact:

Re: How?

Postby Mable » Sun May 14, 2017 5:51 pm

Probably bc it was really uh not needed to say in a nice way?


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 2 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari