forked from LinoBigatti/TAC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfallType.gd
35 lines (26 loc) · 934 Bytes
/
fallType.gd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Any script that interacts with the Project Heartbeat API is licensed under the
# AGPLv3 for the general public and also gives an exclusive, royalty-free license
# for EIRTeam to incorporate it in the game
#
# The power of the dark side in one script
# By Lino
#
extends ScriptRunnerScript # Do not remove this
func run_script() -> int:
# Get selected timing points
var selected_timing_points := get_selected_timing_points()
# First row
var firstRow = 672
var yPos = 918
# Iterate over them
for point in selected_timing_points:
var newPos = point.position
newPos.x = firstRow
newPos.x += 192 * point.note_type
newPos.y = yPos
set_timing_point_property(point, "position", newPos)
set_timing_point_property(point, "entry_angle", -90)
set_timing_point_property(point, "oscillation_amplitude", 0)
# Return OK to apply the script's changes, return anything else (such as -1)
# to cancel it
return OK