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

Implemented audio controls #100

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Documentation/Jumps.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ Jump to a line if the first test value is less than the second test value
Jump to a line if the first test value is less than the second test value
* AbsoluteLineNumber
* TestValue1
* TestValue2
* TestValue2
2 changes: 1 addition & 1 deletion Documentation/README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ Custom attacks are written in a *.csv file
* [Programming language things](Programming.md)
* [Combat zone behaviors](Combat.md)

I suggest to write the attack on an spreadsheet software like Excel or LibreOffice and save it to a csv, instead of hand-making the csv file.
I suggest to write the attack on an spreadsheet software like Excel or LibreOffice and save it to a csv, instead of hand-making the csv file.
1 change: 1 addition & 0 deletions Event sheets/Globals.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@
<variable constant="0" name="MaxHP" sid="2742940924955148" static="0" type="number">92</variable>
<variable constant="0" name="KR" sid="2189987320058474" static="0" type="number">0</variable>
<variable constant="0" name="KR_T" sid="8948293770944489" static="0" type="number">0</variable>
<variable constant="0" name="Volume" sid="324625842960435" static="0" type="number">100</variable>
</events>
</c2eventsheet>
74 changes: 74 additions & 0 deletions Event sheets/InputManagement.xml
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,80 @@
</action>
</actions>
</event-block>
<event-block sid="309707349194850">
<conditions>
<condition id="2" name="Key is down" sid="111808787882335" type="Keyboard">
<param id="0" name="Key">86</param>
</condition>
<condition id="-14" name="Compare variable" sid="832351271071997" type="System">
<param id="0" name="Variable">Volume</param>
<param id="1" name="Comparison">4</param>
<param id="2" name="Value">-60</param>
</condition>
</conditions>
<actions>
<action id="10" name="Set master volume" sid="210115339531550" type="Audio">
<param id="0" name="dB">Audio.MasterVolume - 0.2</param>
</action>
<action id="-11" name="Subtract from" sid="756383051927488" type="System">
<param id="0" name="Variable">Volume</param>
<param id="1" name="Value">1</param>
</action>
</actions>
<sub-events>
<event-block sid="770119027601226">
<conditions>
<condition id="-14" name="Compare variable" sid="688740742718760" type="System">
<param id="0" name="Variable">Volume</param>
<param id="1" name="Comparison">0</param>
<param id="2" name="Value">-60</param>
</condition>
</conditions>
<actions>
<action id="8" name="Set silent" sid="639589446531400" type="Audio">
<param id="0" name="Mode">0</param>
</action>
</actions>
</event-block>
</sub-events>
</event-block>
<event-block sid="362634464076354">
<conditions>
<condition id="2" name="Key is down" sid="837677828931780" type="Keyboard">
<param id="0" name="Key">66</param>
</condition>
<condition id="-14" name="Compare variable" sid="247845785980241" type="System">
<param id="0" name="Variable">Volume</param>
<param id="1" name="Comparison">2</param>
<param id="2" name="Value">100</param>
</condition>
</conditions>
<actions>
<action id="10" name="Set master volume" sid="189796149482971" type="Audio">
<param id="0" name="dB">Audio.MasterVolume + 0.2</param>
</action>
<action id="-10" name="Add to" sid="957556227710295" type="System">
<param id="0" name="Variable">Volume</param>
<param id="1" name="Value">1</param>
</action>
</actions>
<sub-events>
<event-block sid="777458692227246">
<conditions>
<condition id="-14" name="Compare variable" sid="241597148547209" type="System">
<param id="0" name="Variable">Volume</param>
<param id="1" name="Comparison">4</param>
<param id="2" name="Value">-60</param>
</condition>
</conditions>
<actions>
<action id="8" name="Set silent" sid="660645582749282" type="Audio">
<param id="0" name="Mode">1</param>
</action>
</actions>
</event-block>
</sub-events>
</event-block>
</sub-events>
</event-group>
<event-group description="" sid="726194741738483" title="Touch">
Expand Down
4 changes: 4 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ It was made with [Construct 2](https://www.scirra.com/construct2).

NOW AVAILABLE! [Custom attacks guide](Documentation/README.MD)
-----------------------------------------------------
Audio controls:
- V to increase
- B to decreaseb
=======

Known Issues
------------
Expand Down