Skip to content

Commit da6797b

Browse files
authored
Update fire bullet extension across all examples (#949)
1 parent e5b3a5b commit da6797b

20 files changed

Lines changed: 7652 additions & 3212 deletions

File tree

examples/advanced-projectile/advanced-projectile.json

Lines changed: 60 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7521,14 +7521,14 @@
75217521
"author": "@4ian",
75227522
"category": "Game mechanic",
75237523
"extensionNamespace": "",
7524-
"fullName": "Fire bullets",
75257524
"gdevelopVersion": ">=5.5.222",
7525+
"fullName": "Fire bullets",
75267526
"helpPath": "/extensions/fire-bullet/details",
75277527
"iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLWJ1bGxldCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik0xNCwyMkgxMFYyMUgxNFYyMk0xMywxMFY3SDExVjEwTDEwLDExLjVWMjBIMTRWMTEuNUwxMywxME0xMiwyQzEyLDIgMTEsMyAxMSw1VjZIMTNWNUMxMyw1IDEzLDMgMTIsMloiIC8+PC9zdmc+",
75287528
"name": "FireBullet",
75297529
"previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/bullet.svg",
75307530
"shortDescription": "Fire bullets, manage ammo, reloading and overheating.",
7531-
"version": "0.9.1",
7531+
"version": "0.9.2",
75327532
"description": [
75337533
"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.",
75347534
"",
@@ -7539,7 +7539,7 @@
75397539
"- Overheat",
75407540
"",
75417541
"The speed can be specified when using the actions to fire the bullets.",
7542-
"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).",
7542+
"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).",
75437543
"",
75447544
"It can be used for:",
75457545
"- Twin-stick shooters ([open the project online](https://editor.gdevelop.io/?project=example://conviction-of-gun-dude-desktop))",
@@ -7574,7 +7574,7 @@
75747574
"eventsFunctions": [],
75757575
"eventsBasedBehaviors": [
75767576
{
7577-
"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.",
7577+
"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).",
75787578
"fullName": "Fire bullets",
75797579
"name": "FireBullet",
75807580
"objectType": "",
@@ -8148,11 +8148,11 @@
81488148
"objectGroups": []
81498149
},
81508150
{
8151-
"description": "Fire bullets toward an object at a specified speed.",
8151+
"description": "Fire bullets toward an object at a specified speed. Call this continuously, the action checks readiness internally — no extra timer or check needed.",
81528152
"fullName": "Fire bullets toward an object",
81538153
"functionType": "Action",
81548154
"name": "FireTowardObject",
8155-
"sentence": "Fire _PARAM4_ from _PARAM0_, at position _PARAM2_; _PARAM3_, toward _PARAM5_ with speed _PARAM6_ px/s",
8155+
"sentence": "Fire _PARAM4_ from _PARAM0_ (if ready), at position _PARAM2_; _PARAM3_, toward _PARAM5_ with speed _PARAM6_ px/s",
81568156
"events": [
81578157
{
81588158
"type": "BuiltinCommonInstructions::Standard",
@@ -8217,11 +8217,11 @@
82178217
"objectGroups": []
82188218
},
82198219
{
8220-
"description": "Fire bullets toward a position at a specified speed.",
8220+
"description": "Fire bullets toward a position at a specified speed. Call this continuously, the action checks readiness internally — no extra timer or check needed.",
82218221
"fullName": "Fire bullets toward a position",
82228222
"functionType": "Action",
82238223
"name": "FireTowardPosition",
8224-
"sentence": "Fire _PARAM4_ from _PARAM0_, at position _PARAM2_; _PARAM3_, toward position _PARAM5_;_PARAM6_ with speed _PARAM7_ px/s",
8224+
"sentence": "Fire _PARAM4_ from _PARAM0_ (if ready), at position _PARAM2_; _PARAM3_, toward position _PARAM5_;_PARAM6_ with speed _PARAM7_ px/s",
82258225
"events": [
82268226
{
82278227
"type": "BuiltinCommonInstructions::Standard",
@@ -8291,11 +8291,11 @@
82918291
"objectGroups": []
82928292
},
82938293
{
8294-
"description": "Fire bullets in the direction of a given angle at a specified speed.",
8294+
"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.",
82958295
"fullName": "Fire bullets toward an angle",
82968296
"functionType": "Action",
82978297
"name": "Fire",
8298-
"sentence": "Fire _PARAM4_ from _PARAM0_, at position _PARAM2_; _PARAM3_, toward angle _PARAM5_ and speed _PARAM6_ px/s",
8298+
"sentence": "Fire _PARAM4_ from _PARAM0_ (if ready), at position _PARAM2_; _PARAM3_, toward angle _PARAM5_ and speed _PARAM6_ px/s",
82998299
"events": [
83008300
{
83018301
"type": "BuiltinCommonInstructions::Standard",
@@ -12256,19 +12256,27 @@
1225612256
"unit": "Second",
1225712257
"label": "Firing cooldown",
1225812258
"description": "Objects cannot shoot while firing cooldown is active.",
12259+
"group": "",
12260+
"extraInformation": [],
1225912261
"name": "FireCooldown"
1226012262
},
1226112263
{
1226212264
"value": "",
1226312265
"type": "Boolean",
1226412266
"label": "",
12267+
"description": "",
12268+
"group": "",
12269+
"extraInformation": [],
1226512270
"hidden": true,
1226612271
"name": "HasJustFired"
1226712272
},
1226812273
{
1226912274
"value": "true",
1227012275
"type": "Boolean",
1227112276
"label": "Rotate bullets to match their trajectory",
12277+
"description": "",
12278+
"group": "",
12279+
"extraInformation": [],
1227212280
"name": "RotateBullet"
1227312281
},
1227412282
{
@@ -12278,6 +12286,7 @@
1227812286
"label": "Firing arc",
1227912287
"description": "Multi-Fire bullets will be evenly spaced inside the firing arc",
1228012288
"group": "Multi-Fire",
12289+
"extraInformation": [],
1228112290
"name": "FiringArc"
1228212291
},
1228312292
{
@@ -12286,6 +12295,7 @@
1228612295
"label": "Number of bullets created at once",
1228712296
"description": "Multi-Fire bullets will be evenly spaced inside the firing arc",
1228812297
"group": "Multi-Fire",
12298+
"extraInformation": [],
1228912299
"name": "BulletQuantity"
1229012300
},
1229112301
{
@@ -12295,6 +12305,7 @@
1229512305
"label": "Angle variance",
1229612306
"description": "Make imperfect aim (between 0 and 180 degrees).",
1229712307
"group": "Firing variance",
12308+
"extraInformation": [],
1229812309
"advanced": true,
1229912310
"name": "AngleVariance"
1230012311
},
@@ -12305,13 +12316,17 @@
1230512316
"label": "Bullet speed variance",
1230612317
"description": "Bullet speed will be adjusted by a random value within this range.",
1230712318
"group": "Firing variance",
12319+
"extraInformation": [],
1230812320
"advanced": true,
1230912321
"name": "BulletSpeedVariance"
1231012322
},
1231112323
{
1231212324
"value": "0",
1231312325
"type": "Number",
1231412326
"label": "Ammo quantity (current)",
12327+
"description": "",
12328+
"group": "",
12329+
"extraInformation": [],
1231512330
"hidden": true,
1231612331
"name": "AmmoQuantity"
1231712332
},
@@ -12321,6 +12336,7 @@
1232112336
"label": "Shots per reload ",
1232212337
"description": "Use 0 to disable reloading.",
1232312338
"group": "Reload",
12339+
"extraInformation": [],
1232412340
"advanced": true,
1232512341
"name": "ShotsPerReload"
1232612342
},
@@ -12331,21 +12347,27 @@
1233112347
"label": "Reloading duration",
1233212348
"description": "Objects cannot shoot while reloading is in progress.",
1233312349
"group": "Reload",
12350+
"extraInformation": [],
1233412351
"advanced": true,
1233512352
"name": "ReloadDuration"
1233612353
},
1233712354
{
1233812355
"value": "0",
1233912356
"type": "Number",
1234012357
"label": "Max ammo ",
12358+
"description": "",
1234112359
"group": "Ammo",
12360+
"extraInformation": [],
1234212361
"advanced": true,
1234312362
"name": "MaxAmmo"
1234412363
},
1234512364
{
1234612365
"value": "0",
1234712366
"type": "Number",
1234812367
"label": "Shots before next reload",
12368+
"description": "",
12369+
"group": "",
12370+
"extraInformation": [],
1234912371
"hidden": true,
1235012372
"name": "ShotsBeforeNextReload"
1235112373
},
@@ -12354,43 +12376,58 @@
1235412376
"type": "Number",
1235512377
"label": "Total shots fired",
1235612378
"description": "Regardless of how many bullets are created, only 1 shot will be counted per frame",
12379+
"group": "",
12380+
"extraInformation": [],
1235712381
"hidden": true,
1235812382
"name": "TotalShotsFired"
1235912383
},
1236012384
{
1236112385
"value": "0",
1236212386
"type": "Number",
1236312387
"label": "Total bullets created",
12388+
"description": "",
12389+
"group": "",
12390+
"extraInformation": [],
1236412391
"hidden": true,
1236512392
"name": "TotalBulletsCreated"
1236612393
},
1236712394
{
1236812395
"value": "0",
1236912396
"type": "Number",
1237012397
"label": "Starting ammo",
12398+
"description": "",
1237112399
"group": "Ammo",
12400+
"extraInformation": [],
1237212401
"advanced": true,
1237312402
"name": "StartingAmmo"
1237412403
},
1237512404
{
1237612405
"value": "0",
1237712406
"type": "Number",
1237812407
"label": "Total reloads completed",
12408+
"description": "",
12409+
"group": "",
12410+
"extraInformation": [],
1237912411
"hidden": true,
1238012412
"name": "TotalReloadsCompleted"
1238112413
},
1238212414
{
1238312415
"value": "true",
1238412416
"type": "Boolean",
1238512417
"label": "Unlimited ammo",
12418+
"description": "",
1238612419
"group": "Ammo",
12420+
"extraInformation": [],
1238712421
"advanced": true,
1238812422
"name": "UnlimitedAmmo"
1238912423
},
1239012424
{
1239112425
"value": "",
1239212426
"type": "Boolean",
1239312427
"label": "",
12428+
"description": "",
12429+
"group": "",
12430+
"extraInformation": [],
1239412431
"hidden": true,
1239512432
"name": "ReloadInProgress"
1239612433
},
@@ -12400,21 +12437,27 @@
1240012437
"label": "Heat increase per shot (between 0 and 1)",
1240112438
"description": " Object is overheated when Heat reaches 1.",
1240212439
"group": "Overheat",
12440+
"extraInformation": [],
1240312441
"advanced": true,
1240412442
"name": "HeatIncreasePerShot"
1240512443
},
1240612444
{
1240712445
"value": "0",
1240812446
"type": "Number",
1240912447
"label": "Heat level (Range: 0 to 1)",
12448+
"description": "",
12449+
"group": "",
12450+
"extraInformation": [],
1241012451
"hidden": true,
1241112452
"name": "HeatLevel"
1241212453
},
1241312454
{
1241412455
"value": "true",
1241512456
"type": "Boolean",
1241612457
"label": "Reload automatically",
12458+
"description": "",
1241712459
"group": "Reload",
12460+
"extraInformation": [],
1241812461
"advanced": true,
1241912462
"name": "AutomaticReloading"
1242012463
},
@@ -12425,14 +12468,17 @@
1242512468
"label": "Overheat duration",
1242612469
"description": "Object cannot shoot while overheat duration is active.",
1242712470
"group": "Overheat",
12471+
"extraInformation": [],
1242812472
"advanced": true,
1242912473
"name": "OverheatDuration"
1243012474
},
1243112475
{
1243212476
"value": "0.1",
1243312477
"type": "Number",
1243412478
"label": "Linear cooling rate (per second)",
12479+
"description": "",
1243512480
"group": "Overheat",
12481+
"extraInformation": [],
1243612482
"advanced": true,
1243712483
"name": "LinearCoolingRate"
1243812484
},
@@ -12446,7 +12492,6 @@
1244612492
"Linear",
1244712493
"Exponential"
1244812494
],
12449-
"choices": [],
1245012495
"advanced": true,
1245112496
"name": "ExponentialCoolingRate"
1245212497
},
@@ -12456,13 +12501,17 @@
1245612501
"label": "Layer the bullets are created on",
1245712502
"description": "Base layer by default.",
1245812503
"group": "Shooting configuration",
12504+
"extraInformation": [],
1245912505
"hidden": true,
1246012506
"name": "BulletLayer"
1246112507
},
1246212508
{
1246312509
"value": "0",
1246412510
"type": "Number",
1246512511
"label": "",
12512+
"description": "",
12513+
"group": "",
12514+
"extraInformation": [],
1246612515
"hidden": true,
1246712516
"name": "RandomizedAngle"
1246812517
}

0 commit comments

Comments
 (0)