Skip to content
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

Add "keypress = bool" to mario.lua #588

Open
mari0portalplayer opened this issue Nov 5, 2023 · 3 comments
Open

Add "keypress = bool" to mario.lua #588

mari0portalplayer opened this issue Nov 5, 2023 · 3 comments
Labels
enhancement Small improvement uncertain This doesn't seem right

Comments

@mari0portalplayer
Copy link

It would be cool if something like "self.leftkeypress = true" be added to mario.lua

@mari0portalplayer mari0portalplayer closed this as not planned Won't fix, can't repro, duplicate, stale Nov 5, 2023
@mari0portalplayer
Copy link
Author

mari0portalplayer commented Nov 6, 2023

Like that,if doesn't exists

		self.leftkeypress = true
	else
		self.leftkeypress = false
	end
	if upkey(self.playernumber) and self.controlsenabled then
		self.upkeypress = true
	else
		self.upkeypress = false
	end
	if downkey(self.playernumber) and self.controlsenabled then
		self.downkeypress = true
	else
		self.downkeypress = false
	end
	if rightkey(self.playernumber) and self.controlsenabled then
		self.rightkeypress = true
	else
		self.rightkeypress = false
	end
	if usekey(self.playernumber) and self.controlsenabled then
		self.usekeypress = true
	else
		self.usekeypress = false
	end
	if jumpkey(self.playernumber) and self.controlsenabled then
		self.jumpkeypress = true
	else
		self.jumpkeypress = false
	end
	if runkey(self.playernumber) and self.controlsenabled then
		self.runkeypress = true
	else
		self.runkeypress = false
	end
	if reloadkey(self.playernumber) and self.controlsenabled then
		self.reloadkeypress = true
	else
		self.reloadkeypress = false
	end 

@greatbritdan
Copy link
Contributor

ahaha, no. There are so many other ways to read a players input like idk... the animation system? It literally has triggers for pressing, holding and undressing keys.

@WilliamFr0g
Copy link
Contributor

You can already do this if you make a button controller, instead of suggesting a feature be added that like 3 people can use correctly

@alesan99 alesan99 added uncertain This doesn't seem right enhancement Small improvement labels May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Small improvement uncertain This doesn't seem right
Projects
None yet
Development

No branches or pull requests

4 participants