Platform Builder Forums

Main => Suggestions => Topic started by: Antikore on July 19, 2020, 06:28:23 PM

Title: More Controls Functions
Post by: Antikore on July 19, 2020, 06:28:23 PM
First of all, more key conditionals
Code: [Select]
if key pressed = left
if key released = right
if key = jump

Second, allow us to put more keybinds
Code: [Select]
if key = custom 1
if key pressed = custom 3

Third, allow us to check for an specific key, not related to a keybind
Code: [Select]
if key pressed = 32 //Space
if key = 48 //Key 0
if key = 88 //X key
if key released = g1 //g means any button from a gamepad, idk which numbers to use for each
The values are from here: https://www.asciitable.com (https://www.asciitable.com)

Fourth, allow us to set, change, etc. keybinds from commands, allowing us to create custom control config menus.
Code: [Select]
player 1 keybind left = [last key] //Set player 1's left keybind to the last keyboard key pressed.
player 2 keybind jump = 88 //Sets player 2's keybind jump to X button from keyboard
player 1 keybind custom 1 = g2 //Sets  player 1's custom keybind with id 1 to the gamepad button with id 2
player 2 keybind shoot = [last button] //Sets default player 2's shoot keybind to the last gamepad button

Obvioulsy this gives us some more bracketings
Code: [Select]
[player (1|2) keybind (keybind name)] //Returns the ascii value of that keybind
[last key] //Last keyboard button pressed by the user
[last button] //Last gamepad button pressed by the user.

//Useful for this
if key pressed = [player 1 keybind custom 1]
{
//Do things
}
//or
if key pressed = custom 1
{
//Do things
}
//But this leaves PB free to choose which player is intended to get the keybind from
Title: Re: More Controls Functions
Post by: Antikore on July 20, 2020, 03:26:29 PM
This is an example but TingThing should add this or similar to improve PB. I'm not sure how TingThing will do the number system for the keys but I think this is a good base.
Title: Re: More Controls Functions
Post by: warrior on July 30, 2020, 08:33:19 PM
imagine if we bumped this everyday until tingthing shares his toughts
Title: Re: More Controls Functions
Post by: Antikore on July 30, 2020, 10:03:10 PM
imagine if we bumped this everyday until tingthing shares his toughts
Not a bad idea imo xD
Title: Re: More Controls Functions
Post by: warrior on August 02, 2020, 08:03:52 PM
bump 1
Title: Re: More Controls Functions
Post by: warrior on August 03, 2020, 08:08:46 PM
bump 2
Title: Re: More Controls Functions
Post by: Christian Game Maker (CGM) on August 04, 2020, 01:17:02 AM
Seriously, Warr?
Title: Re: More Controls Functions
Post by: Mechasaur on August 04, 2020, 08:40:02 PM
bump 3
Title: Re: More Controls Functions
Post by: warrior on August 05, 2020, 03:11:03 PM
bump 4
Title: Re: More Controls Functions
Post by: Antikore on August 07, 2020, 01:34:44 PM
bump 5
Title: Re: More Controls Functions
Post by: warrior on August 09, 2020, 08:44:05 AM
bump 6
Title: Re: More Controls Functions
Post by: Antikore on August 10, 2020, 03:14:10 PM
bump 7
Title: Re: More Controls Functions
Post by: warrior on August 10, 2020, 06:49:52 PM
bump 8
Title: Re: More Controls Functions
Post by: warrior on August 11, 2020, 04:48:53 PM
bump 9
Title: Re: More Controls Functions
Post by: Alley on August 11, 2020, 06:50:25 PM
imagine if we bumped this everyday until tingthing shares his toughts
Why? ??? Should this be some type of pressure? I am sure Ting_Thing already works hard to make even some of the suggestions reality. ::)
Title: Re: More Controls Functions
Post by: Christian Game Maker (CGM) on August 11, 2020, 08:20:40 PM
I'm on Alley's side.
Title: Re: More Controls Functions
Post by: warrior on August 12, 2020, 10:46:55 AM
I'm on Alley's side.
You can just say that you're on the side that is opposite to mine, that would say alot about you
Title: Re: More Controls Functions
Post by: Christian Game Maker (CGM) on August 12, 2020, 01:42:28 PM
It's like you said before. There's simply a lot we don't agree on. But I'm not sure if it's intentional, or simply because we view things differently. I'm really unsure. One thing I am sure about is that you've changed quite a bit since you first joined these forums. And I'm glad you're here. We need someone to liven up the place a bit and to take an opposite point of view on things. That's a good thing. Because maybe your ideas are better than mine. Who knows!
Title: Re: More Controls Functions
Post by: Antikore on August 13, 2020, 04:07:50 PM
Why? ??? Should this be some type of pressure? I am sure Ting_Thing already works hard to make even some of the suggestions reality. ::)
Just for fun, I'm sure he will add this sooner or later.
Title: Re: More Controls Functions
Post by: warrior on August 17, 2020, 04:26:09 PM
Just for fun, I'm sure he will add this sooner or later.
Seeing that we got custom enemy physics, he may add this in 9.0.