Jump to content

Photo

[2.55] disable link movement if he's in the air


  • Please log in to reply
3 replies to this topic

#1 Jenny

Jenny

    Hero of Time

  • Members
  • Real Name:Jennette
  • Pronouns:She / Her

Posted 30 November 2022 - 07:42 PM

what it says on the tin. as long as link is in the air i would like his movement to be disabled until he is not in the air.


  • Shane likes this

#2 Mitchfork

Mitchfork

    no fun. not ever.

  • Members
  • Real Name:Mitch
  • Location:Alabama

Posted 30 November 2022 - 09:50 PM

like, all the time, for the whole quest?



#3 Jenny

Jenny

    Hero of Time

  • Members
  • Real Name:Jennette
  • Pronouns:She / Her

Posted 30 November 2022 - 09:53 PM

oh nah screen dependent. shouldve clarified.



#4 Mitchfork

Mitchfork

    no fun. not ever.

  • Members
  • Real Name:Mitch
  • Location:Alabama

Posted 30 November 2022 - 10:22 PM

ffc script noMidairMove {
	void run() {
		while(true) {
			if (Link->Z > 0) {
				Input->Button[CB_UP] = false;
				Input->Press[CB_UP] = false;
				Input->Button[CB_DOWN] = false;
				Input->Press[CB_DOWN] = false;
				Input->Button[CB_LEFT] = false;
				Input->Press[CB_LEFT] = false;
				Input->Button[CB_RIGHT] = false;
				Input->Press[CB_RIGHT] = false;				
				//NoAction();
			}
			Waitframe();
		}
	}
}
If you want it to disable all inputs, you can uncomment NoAction(); and delete all of the Input statements. But this should work alright
  • Shane and Jenny like this


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users