Some beginner coding ideas for fighting games
1 post
• Page 1 of 1
Some beginner coding ideas for fighting games
So I just wanted to summarize what Ive learned succinctly and also ask a few questions of my own to any pros reading this.
Triggering your code
Most people I think imagine pressing a or more than one buttons and directions to start their program.
I found the easiest way is
That would be code for triggering a script by pushing left at some level then pushing A simultaneously.
Releasing a button still works for get_val
Whereas event_press is more finite. Its only triggered when pressing down on a button. I find that some inputs like directions for instance work better with get_val.
??
Now here's a question for the pros. How can I trigger a script with multiple combos??
I imagine it would be something like
if()
then()
But I dont know how to use the "then" command if it is.
I want to trigger a combo after I perform multiple steps in a combo chain on my controller.
Triggering your code
Most people I think imagine pressing a or more than one buttons and directions to start their program.
I found the easiest way is
- Code: Select all
if (get_val(XB1_LEFT) && event_press(XB1_A)) {
combo_run(mycombo);}
}
That would be code for triggering a script by pushing left at some level then pushing A simultaneously.
Releasing a button still works for get_val
Whereas event_press is more finite. Its only triggered when pressing down on a button. I find that some inputs like directions for instance work better with get_val.
??
Now here's a question for the pros. How can I trigger a script with multiple combos??
I imagine it would be something like
if()
then()
But I dont know how to use the "then" command if it is.
I want to trigger a combo after I perform multiple steps in a combo chain on my controller.
-
SkylockVixen - Corporal
- Posts: 5
- Joined: Mon Mar 20, 2023 9:18 am
1 post
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 111 guests