Skip to content
Merged
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
71 changes: 60 additions & 11 deletions examples/advanced-projectile/advanced-projectile.json
Original file line number Diff line number Diff line change
Expand Up @@ -7521,14 +7521,14 @@
"author": "@4ian",
"category": "Game mechanic",
"extensionNamespace": "",
"fullName": "Fire bullets",
"gdevelopVersion": ">=5.5.222",
"fullName": "Fire bullets",
"helpPath": "/extensions/fire-bullet/details",
"iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLWJ1bGxldCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik0xNCwyMkgxMFYyMUgxNFYyMk0xMywxMFY3SDExVjEwTDEwLDExLjVWMjBIMTRWMTEuNUwxMywxME0xMiwyQzEyLDIgMTEsMyAxMSw1VjZIMTNWNUMxMyw1IDEzLDMgMTIsMloiIC8+PC9zdmc+",
"name": "FireBullet",
"previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/bullet.svg",
"shortDescription": "Fire bullets, manage ammo, reloading and overheating.",
"version": "0.9.1",
"version": "0.9.2",
"description": [
"This extension allows objects to fire bullets. To use it, add the behavior to the object that will shoot, then use the provided action to launch another object as the bullet.",
"",
Expand All @@ -7539,7 +7539,7 @@
"- Overheat",
"",
"The speed can be specified when using the actions to fire the bullets.",
"The bullets are automatically given a permanent force to make them move (no need to use a linear movement or move them with another behavior).",
"The bullets are automatically given a permanent force to make them move in the 2D plane (no need to use a linear movement or move them with another behavior).",
"",
"It can be used for:",
"- Twin-stick shooters ([open the project online](https://editor.gdevelop.io/?project=example://conviction-of-gun-dude-desktop))",
Expand Down Expand Up @@ -7574,7 +7574,7 @@
"eventsFunctions": [],
"eventsBasedBehaviors": [
{
"description": "Fire bullets, manage ammo, reloading, and overheating. Once added to your object that must shoot, use the behavior action in your events to fire another object as a bullet. This action will also make the bullet move (using a permanent force) at the speed specified in the action.",
"description": "Fire bullets with built-in cooldown, ammo, reloading, and overheating. Once added to your object that must shoot, use the behavior actions to fire another object as a bullet. These actions check all constraints internally (can be called without conditions, they will only fire when ready) and will make the bullet move (using a permanent force).",
"fullName": "Fire bullets",
"name": "FireBullet",
"objectType": "",
Expand Down Expand Up @@ -8148,11 +8148,11 @@
"objectGroups": []
},
{
"description": "Fire bullets toward an object at a specified speed.",
"description": "Fire bullets toward an object at a specified speed. Call this continuously, the action checks readiness internally — no extra timer or check needed.",
"fullName": "Fire bullets toward an object",
"functionType": "Action",
"name": "FireTowardObject",
"sentence": "Fire _PARAM4_ from _PARAM0_, at position _PARAM2_; _PARAM3_, toward _PARAM5_ with speed _PARAM6_ px/s",
"sentence": "Fire _PARAM4_ from _PARAM0_ (if ready), at position _PARAM2_; _PARAM3_, toward _PARAM5_ with speed _PARAM6_ px/s",
"events": [
{
"type": "BuiltinCommonInstructions::Standard",
Expand Down Expand Up @@ -8217,11 +8217,11 @@
"objectGroups": []
},
{
"description": "Fire bullets toward a position at a specified speed.",
"description": "Fire bullets toward a position at a specified speed. Call this continuously, the action checks readiness internally — no extra timer or check needed.",
"fullName": "Fire bullets toward a position",
"functionType": "Action",
"name": "FireTowardPosition",
"sentence": "Fire _PARAM4_ from _PARAM0_, at position _PARAM2_; _PARAM3_, toward position _PARAM5_;_PARAM6_ with speed _PARAM7_ px/s",
"sentence": "Fire _PARAM4_ from _PARAM0_ (if ready), at position _PARAM2_; _PARAM3_, toward position _PARAM5_;_PARAM6_ with speed _PARAM7_ px/s",
"events": [
{
"type": "BuiltinCommonInstructions::Standard",
Expand Down Expand Up @@ -8291,11 +8291,11 @@
"objectGroups": []
},
{
"description": "Fire bullets in the direction of a given angle at a specified speed.",
"description": "Fire bullets in the direction of a given angle at a specified speed. Call this continuously, the action checks readiness internally — no extra timer or check needed.",
"fullName": "Fire bullets toward an angle",
"functionType": "Action",
"name": "Fire",
"sentence": "Fire _PARAM4_ from _PARAM0_, at position _PARAM2_; _PARAM3_, toward angle _PARAM5_ and speed _PARAM6_ px/s",
"sentence": "Fire _PARAM4_ from _PARAM0_ (if ready), at position _PARAM2_; _PARAM3_, toward angle _PARAM5_ and speed _PARAM6_ px/s",
"events": [
{
"type": "BuiltinCommonInstructions::Standard",
Expand Down Expand Up @@ -12256,19 +12256,27 @@
"unit": "Second",
"label": "Firing cooldown",
"description": "Objects cannot shoot while firing cooldown is active.",
"group": "",
"extraInformation": [],
"name": "FireCooldown"
},
{
"value": "",
"type": "Boolean",
"label": "",
"description": "",
"group": "",
"extraInformation": [],
"hidden": true,
"name": "HasJustFired"
},
{
"value": "true",
"type": "Boolean",
"label": "Rotate bullets to match their trajectory",
"description": "",
"group": "",
"extraInformation": [],
"name": "RotateBullet"
},
{
Expand All @@ -12278,6 +12286,7 @@
"label": "Firing arc",
"description": "Multi-Fire bullets will be evenly spaced inside the firing arc",
"group": "Multi-Fire",
"extraInformation": [],
"name": "FiringArc"
},
{
Expand All @@ -12286,6 +12295,7 @@
"label": "Number of bullets created at once",
"description": "Multi-Fire bullets will be evenly spaced inside the firing arc",
"group": "Multi-Fire",
"extraInformation": [],
"name": "BulletQuantity"
},
{
Expand All @@ -12295,6 +12305,7 @@
"label": "Angle variance",
"description": "Make imperfect aim (between 0 and 180 degrees).",
"group": "Firing variance",
"extraInformation": [],
"advanced": true,
"name": "AngleVariance"
},
Expand All @@ -12305,13 +12316,17 @@
"label": "Bullet speed variance",
"description": "Bullet speed will be adjusted by a random value within this range.",
"group": "Firing variance",
"extraInformation": [],
"advanced": true,
"name": "BulletSpeedVariance"
},
{
"value": "0",
"type": "Number",
"label": "Ammo quantity (current)",
"description": "",
"group": "",
"extraInformation": [],
"hidden": true,
"name": "AmmoQuantity"
},
Expand All @@ -12321,6 +12336,7 @@
"label": "Shots per reload ",
"description": "Use 0 to disable reloading.",
"group": "Reload",
"extraInformation": [],
"advanced": true,
"name": "ShotsPerReload"
},
Expand All @@ -12331,21 +12347,27 @@
"label": "Reloading duration",
"description": "Objects cannot shoot while reloading is in progress.",
"group": "Reload",
"extraInformation": [],
"advanced": true,
"name": "ReloadDuration"
},
{
"value": "0",
"type": "Number",
"label": "Max ammo ",
"description": "",
"group": "Ammo",
"extraInformation": [],
"advanced": true,
"name": "MaxAmmo"
},
{
"value": "0",
"type": "Number",
"label": "Shots before next reload",
"description": "",
"group": "",
"extraInformation": [],
"hidden": true,
"name": "ShotsBeforeNextReload"
},
Expand All @@ -12354,43 +12376,58 @@
"type": "Number",
"label": "Total shots fired",
"description": "Regardless of how many bullets are created, only 1 shot will be counted per frame",
"group": "",
"extraInformation": [],
"hidden": true,
"name": "TotalShotsFired"
},
{
"value": "0",
"type": "Number",
"label": "Total bullets created",
"description": "",
"group": "",
"extraInformation": [],
"hidden": true,
"name": "TotalBulletsCreated"
},
{
"value": "0",
"type": "Number",
"label": "Starting ammo",
"description": "",
"group": "Ammo",
"extraInformation": [],
"advanced": true,
"name": "StartingAmmo"
},
{
"value": "0",
"type": "Number",
"label": "Total reloads completed",
"description": "",
"group": "",
"extraInformation": [],
"hidden": true,
"name": "TotalReloadsCompleted"
},
{
"value": "true",
"type": "Boolean",
"label": "Unlimited ammo",
"description": "",
"group": "Ammo",
"extraInformation": [],
"advanced": true,
"name": "UnlimitedAmmo"
},
{
"value": "",
"type": "Boolean",
"label": "",
"description": "",
"group": "",
"extraInformation": [],
"hidden": true,
"name": "ReloadInProgress"
},
Expand All @@ -12400,21 +12437,27 @@
"label": "Heat increase per shot (between 0 and 1)",
"description": " Object is overheated when Heat reaches 1.",
"group": "Overheat",
"extraInformation": [],
"advanced": true,
"name": "HeatIncreasePerShot"
},
{
"value": "0",
"type": "Number",
"label": "Heat level (Range: 0 to 1)",
"description": "",
"group": "",
"extraInformation": [],
"hidden": true,
"name": "HeatLevel"
},
{
"value": "true",
"type": "Boolean",
"label": "Reload automatically",
"description": "",
"group": "Reload",
"extraInformation": [],
"advanced": true,
"name": "AutomaticReloading"
},
Expand All @@ -12425,14 +12468,17 @@
"label": "Overheat duration",
"description": "Object cannot shoot while overheat duration is active.",
"group": "Overheat",
"extraInformation": [],
"advanced": true,
"name": "OverheatDuration"
},
{
"value": "0.1",
"type": "Number",
"label": "Linear cooling rate (per second)",
"description": "",
"group": "Overheat",
"extraInformation": [],
"advanced": true,
"name": "LinearCoolingRate"
},
Expand All @@ -12446,7 +12492,6 @@
"Linear",
"Exponential"
],
"choices": [],
"advanced": true,
"name": "ExponentialCoolingRate"
},
Expand All @@ -12456,13 +12501,17 @@
"label": "Layer the bullets are created on",
"description": "Base layer by default.",
"group": "Shooting configuration",
"extraInformation": [],
"hidden": true,
"name": "BulletLayer"
},
{
"value": "0",
"type": "Number",
"label": "",
"description": "",
"group": "",
"extraInformation": [],
"hidden": true,
"name": "RandomizedAngle"
}
Expand Down
Loading
Loading