Skip to content

Commit

Permalink
Add a property to trigger multi-touch button around the object.
Browse files Browse the repository at this point in the history
  • Loading branch information
D8H committed Jan 16, 2025
1 parent ced8927 commit 125e279
Showing 1 changed file with 34 additions and 5 deletions.
39 changes: 34 additions & 5 deletions extensions/reviewed/SpriteMultitouchJoystick.json
Original file line number Diff line number Diff line change
Expand Up @@ -3216,12 +3216,31 @@
"conditions": [
{
"type": {
"value": "CollisionPoint"
"value": "BuiltinCommonInstructions::Or"
},
"parameters": [
"Object",
"TouchX(StartedTouchOrMouseId(TouchIndex), Object.Layer(), 0)",
"TouchY(StartedTouchOrMouseId(TouchIndex), Object.Layer(), 0)"
"parameters": [],
"subInstructions": [
{
"type": {
"value": "CollisionPoint"
},
"parameters": [
"Object",
"TouchX(StartedTouchOrMouseId(TouchIndex), Object.Layer())",
"TouchY(StartedTouchOrMouseId(TouchIndex), Object.Layer())"
]
},
{
"type": {
"value": "SpriteMultitouchJoystick::MultitouchButton::PropertyRadius"
},
"parameters": [
"Object",
"Behavior",
">",
"DistanceBetweenPositions(Object.CenterX(), Object.CenterY(), TouchX(StartedTouchOrMouseId(TouchIndex), Object.Layer()), TouchY(StartedTouchOrMouseId(TouchIndex), Object.Layer()))"
]
}
]
}
],
Expand Down Expand Up @@ -3537,6 +3556,16 @@
"extraInformation": [],
"hidden": true,
"name": "IsReleased"
},
{
"value": "0",
"type": "Number",
"unit": "Pixel",
"label": "Triggering circle radius",
"description": "This circle adds up to the object collision mask.",
"group": "",
"extraInformation": [],
"name": "Radius"
}
],
"sharedPropertyDescriptors": []
Expand Down

0 comments on commit 125e279

Please sign in to comment.