|
8 | 8 | "name": "BoidsMovement", |
9 | 9 | "previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/Glyphster Pack/Master/SVG/Restaurant/Restaurant_restaurant_seafood_animal_fish.svg", |
10 | 10 | "shortDescription": "Simulates flocks movement.", |
11 | | - "version": "0.3.1", |
| 11 | + "version": "0.3.2", |
12 | 12 | "description": [ |
13 | 13 | "Simulates swarms or flocks movement following the separation, alignment, cohesion principles. The flock can be attracted to a location or avoid some obstacles.", |
14 | 14 | "", |
|
1379 | 1379 | "objectGroups": [] |
1380 | 1380 | }, |
1381 | 1381 | { |
1382 | | - "description": "Change the maximum speed of the object.", |
1383 | | - "fullName": "Maximum speed", |
1384 | | - "functionType": "Action", |
| 1382 | + "description": "Check if the object is rotated while moving on its path.", |
| 1383 | + "fullName": "Object Rotated", |
| 1384 | + "functionType": "Condition", |
1385 | 1385 | "group": "Boids movement configuration", |
1386 | | - "name": "SetMaxSpeed", |
1387 | | - "sentence": "Change the maximum speed of _PARAM0_ to _PARAM2_", |
| 1386 | + "name": "ShouldRotate", |
| 1387 | + "sentence": "_PARAM0_ is rotated when moving", |
1388 | 1388 | "events": [ |
1389 | 1389 | { |
1390 | 1390 | "type": "BuiltinCommonInstructions::Standard", |
1391 | | - "conditions": [], |
1392 | | - "actions": [ |
| 1391 | + "conditions": [ |
1393 | 1392 | { |
1394 | 1393 | "type": { |
1395 | | - "value": "BoidsMovement::BoidsMovement::SetPropertyMaxSpeed" |
| 1394 | + "value": "BoidsMovement::BoidsMovement::PropertyShouldRotate" |
1396 | 1395 | }, |
1397 | 1396 | "parameters": [ |
1398 | 1397 | "Object", |
1399 | | - "Behavior", |
1400 | | - "=", |
1401 | | - "MaxSpeed" |
| 1398 | + "Behavior" |
| 1399 | + ] |
| 1400 | + } |
| 1401 | + ], |
| 1402 | + "actions": [ |
| 1403 | + { |
| 1404 | + "type": { |
| 1405 | + "value": "SetReturnBoolean" |
| 1406 | + }, |
| 1407 | + "parameters": [ |
| 1408 | + "True" |
1402 | 1409 | ] |
1403 | 1410 | } |
1404 | 1411 | ] |
|
1415 | 1422 | "name": "Behavior", |
1416 | 1423 | "supplementaryInformation": "BoidsMovement::BoidsMovement", |
1417 | 1424 | "type": "behavior" |
1418 | | - }, |
1419 | | - { |
1420 | | - "description": "Max Speed", |
1421 | | - "name": "MaxSpeed", |
1422 | | - "type": "expression" |
1423 | 1425 | } |
1424 | 1426 | ], |
1425 | 1427 | "objectGroups": [] |
1426 | 1428 | }, |
1427 | 1429 | { |
1428 | | - "description": "Change the maximum acceleration of the object.", |
1429 | | - "fullName": "Maximum acceleration", |
1430 | | - "functionType": "Action", |
| 1430 | + "description": "Return the maximum speed.", |
| 1431 | + "fullName": "Maximum speed", |
| 1432 | + "functionType": "Expression", |
1431 | 1433 | "group": "Boids movement configuration", |
1432 | | - "name": "SetMaxAcceleration", |
1433 | | - "sentence": "Change the maximum acceleration of _PARAM0_ to _PARAM2_", |
| 1434 | + "name": "MaxSpeed", |
| 1435 | + "sentence": "", |
1434 | 1436 | "events": [ |
1435 | 1437 | { |
1436 | 1438 | "type": "BuiltinCommonInstructions::Standard", |
1437 | 1439 | "conditions": [], |
1438 | 1440 | "actions": [ |
1439 | 1441 | { |
1440 | 1442 | "type": { |
1441 | | - "value": "BoidsMovement::BoidsMovement::SetPropertyMaxAcceleration" |
| 1443 | + "value": "SetReturnNumber" |
1442 | 1444 | }, |
1443 | 1445 | "parameters": [ |
1444 | | - "Object", |
1445 | | - "Behavior", |
1446 | | - "=", |
1447 | | - "SteeringForce" |
| 1446 | + "MaxSpeed" |
1448 | 1447 | ] |
1449 | 1448 | } |
1450 | 1449 | ] |
1451 | 1450 | } |
1452 | 1451 | ], |
| 1452 | + "expressionType": { |
| 1453 | + "type": "expression" |
| 1454 | + }, |
1453 | 1455 | "parameters": [ |
1454 | 1456 | { |
1455 | 1457 | "description": "Object", |
|
1461 | 1463 | "name": "Behavior", |
1462 | 1464 | "supplementaryInformation": "BoidsMovement::BoidsMovement", |
1463 | 1465 | "type": "behavior" |
1464 | | - }, |
1465 | | - { |
1466 | | - "description": "Steering Force", |
1467 | | - "name": "SteeringForce", |
1468 | | - "type": "expression" |
1469 | 1466 | } |
1470 | 1467 | ], |
1471 | 1468 | "objectGroups": [] |
1472 | 1469 | }, |
1473 | 1470 | { |
1474 | | - "description": "Check if the object is rotated while moving on its path.", |
1475 | | - "fullName": "Object Rotated", |
1476 | | - "functionType": "Condition", |
| 1471 | + "description": "Change the maximum speed of the object.", |
| 1472 | + "fullName": "Maximum speed", |
| 1473 | + "functionType": "Action", |
1477 | 1474 | "group": "Boids movement configuration", |
1478 | | - "name": "ShouldRotate", |
1479 | | - "sentence": "_PARAM0_ is rotated when moving", |
| 1475 | + "name": "SetMaxSpeed", |
| 1476 | + "sentence": "Change the maximum speed of _PARAM0_ to _PARAM2_", |
1480 | 1477 | "events": [ |
1481 | 1478 | { |
1482 | 1479 | "type": "BuiltinCommonInstructions::Standard", |
1483 | | - "conditions": [ |
1484 | | - { |
1485 | | - "type": { |
1486 | | - "value": "BoidsMovement::BoidsMovement::PropertyShouldRotate" |
1487 | | - }, |
1488 | | - "parameters": [ |
1489 | | - "Object", |
1490 | | - "Behavior" |
1491 | | - ] |
1492 | | - } |
1493 | | - ], |
| 1480 | + "conditions": [], |
1494 | 1481 | "actions": [ |
1495 | 1482 | { |
1496 | 1483 | "type": { |
1497 | | - "value": "SetReturnBoolean" |
| 1484 | + "value": "BoidsMovement::BoidsMovement::SetPropertyMaxSpeed" |
1498 | 1485 | }, |
1499 | 1486 | "parameters": [ |
1500 | | - "True" |
| 1487 | + "Object", |
| 1488 | + "Behavior", |
| 1489 | + "=", |
| 1490 | + "Value" |
1501 | 1491 | ] |
1502 | 1492 | } |
1503 | 1493 | ] |
|
1514 | 1504 | "name": "Behavior", |
1515 | 1505 | "supplementaryInformation": "BoidsMovement::BoidsMovement", |
1516 | 1506 | "type": "behavior" |
| 1507 | + }, |
| 1508 | + { |
| 1509 | + "description": "Max Speed", |
| 1510 | + "name": "Value", |
| 1511 | + "type": "expression" |
1517 | 1512 | } |
1518 | 1513 | ], |
1519 | 1514 | "objectGroups": [] |
1520 | 1515 | }, |
1521 | 1516 | { |
1522 | | - "description": "Return the maximum speed.", |
1523 | | - "fullName": "Maximum speed", |
| 1517 | + "description": "Return the maximum acceleration.", |
| 1518 | + "fullName": "Maximum acceleration", |
1524 | 1519 | "functionType": "Expression", |
1525 | 1520 | "group": "Boids movement configuration", |
1526 | | - "name": "MaxSpeed", |
| 1521 | + "name": "MaxAcceleration", |
1527 | 1522 | "sentence": "", |
1528 | 1523 | "events": [ |
1529 | 1524 | { |
|
1535 | 1530 | "value": "SetReturnNumber" |
1536 | 1531 | }, |
1537 | 1532 | "parameters": [ |
1538 | | - "MaxSpeed" |
| 1533 | + "MaxAcceleration" |
1539 | 1534 | ] |
1540 | 1535 | } |
1541 | 1536 | ] |
|
1560 | 1555 | "objectGroups": [] |
1561 | 1556 | }, |
1562 | 1557 | { |
1563 | | - "description": "Return the maximum acceleration.", |
| 1558 | + "description": "Change the maximum acceleration of the object.", |
1564 | 1559 | "fullName": "Maximum acceleration", |
1565 | | - "functionType": "Expression", |
| 1560 | + "functionType": "Action", |
1566 | 1561 | "group": "Boids movement configuration", |
1567 | | - "name": "MaxAcceleration", |
1568 | | - "sentence": "", |
| 1562 | + "name": "SetMaxAcceleration", |
| 1563 | + "sentence": "Change the maximum acceleration of _PARAM0_ to _PARAM2_", |
1569 | 1564 | "events": [ |
1570 | 1565 | { |
1571 | 1566 | "type": "BuiltinCommonInstructions::Standard", |
1572 | 1567 | "conditions": [], |
1573 | 1568 | "actions": [ |
1574 | 1569 | { |
1575 | 1570 | "type": { |
1576 | | - "value": "SetReturnNumber" |
| 1571 | + "value": "BoidsMovement::BoidsMovement::SetPropertyMaxAcceleration" |
1577 | 1572 | }, |
1578 | 1573 | "parameters": [ |
1579 | | - "MaxAcceleration" |
| 1574 | + "Object", |
| 1575 | + "Behavior", |
| 1576 | + "=", |
| 1577 | + "Value" |
1580 | 1578 | ] |
1581 | 1579 | } |
1582 | 1580 | ] |
1583 | 1581 | } |
1584 | 1582 | ], |
1585 | | - "expressionType": { |
1586 | | - "type": "expression" |
1587 | | - }, |
1588 | 1583 | "parameters": [ |
1589 | 1584 | { |
1590 | 1585 | "description": "Object", |
|
1596 | 1591 | "name": "Behavior", |
1597 | 1592 | "supplementaryInformation": "BoidsMovement::BoidsMovement", |
1598 | 1593 | "type": "behavior" |
| 1594 | + }, |
| 1595 | + { |
| 1596 | + "description": "Steering Force", |
| 1597 | + "name": "Value", |
| 1598 | + "type": "expression" |
1599 | 1599 | } |
1600 | 1600 | ], |
1601 | 1601 | "objectGroups": [] |
|
0 commit comments