Advertisement
Guest User

GDfixes

a guest
Mar 12th, 2020
370
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.27 KB | None | 0 0
  1. Here a few troubleshooting steps to help you solve your bugs:
  2.  
  3. - an object cannot be seen:
  4. - check the following:
  5. - the object exists: click on the debugger button next to the preview button. When the preview is opened, go to the debugger tab and scroll the list to see if your object has instances (number inside parentheses).
  6. - the object is visible: debugger: Hidden: false
  7. - check that its layer exists in the scene: debugger
  8. - check that its layer is visible: Hidden: false
  9.  
  10. If an action doesn’t run:
  11.  
  12. remove conditions and try again. If the action works, add your conditions one by one and see which one causes the issue.
  13.  
  14. If the action doesn’t run without conditions:
  15.  
  16. check that the action is valid: double-click on the action, make sure the settings are correct.
  17. check that there is not another action that might cancel it or take over. In your events, look for actions of the same type and/or actions using the same objects.
  18.  
  19.  
  20. - sound issue:
  21. - delay: play your files at the beginning of the scene with volume 0.
  22. - echo/weird/noisy sound (sound is played 50 times per second): use the "trigger once" condition.
  23. - no sound: try with the "sound on a channel" actions. Try a small random sound file.
  24.  
  25. - ad issue:
  26. - fill in the ids received from Admob,
  27. - wait for a week for your account to activate,
  28. - export your games to try, and
  29. - use the test mode on the ads.
  30.  
  31. General fixes:
  32. - restart your computer
  33. - reinstall GDevelop
  34. - recreate your events in a new project, focusing on the part that does not work. Share this dummy project on the help section of GDevelop's forum.
  35.  
  36.  
  37.  
  38. !foreach
  39. To apply an action to several instances of the same object/group, it is sometimes necessary to use the For Each type of event.
  40. Find out more at: http://wiki.compilgames.net/doku.php/gdevelop5/events/foreach
  41.  
  42. !once
  43. If an action gets repeated when it shouldn't, you probably need to use a "Trigger once" condition, so that the action will only be executed once while the conditions remain valid.
  44. Find out more at: http://wiki.compilgames.net/doku.php/gdevelop5/all-features/advanced-conditions#trigger_once
  45.  
  46. !admob
  47. If you're having problems with ads, check the following: fill in the IDs received from Admob, wait for up to a week for your account to activate, export your games to try them, and use the Admob test mode.
  48. Find out more at: http://wiki.compilgames.net/doku.php/gdevelop5/all-features/admob#integrating_ads_using_google_admob
  49.  
  50. !sound
  51. If your having sound issues, read the following:
  52. - your sound is delayed: play your files at the beginning of the scene with volume 0 to buffer them.
  53. - echo/weird/noisy sound: use the "trigger once" condition or your sound is played 60 times per second.
  54. - no sound at all: try the "play sound on a channel" action.
  55. - Try to replace your file by a small mp3 file.
  56. Find out more at: http://wiki.compilgames.net/doku.php/gdevelop5/all-features/audio
  57.  
  58. !invisible
  59. An object cannot be seen? Check the following:
  60. - does the object exist: click on the debugger button next to the preview button. When the preview is opened, go to the debugger tab and scroll the list to see if your object has instances.
  61. - is it visible: in the debugger, check that the hidden property of the object is: false
  62. - does its layer exist: in the scene tab, open the Layers menu to confirm that the layer exists.
  63. - is its layer visible: in the debugger, in the scene properties, check that the hidden property of the layer is: false
  64. - is it below another: if the object exists and is not hidden and the same goes for its layer, you probably need to change the z-order of your object.
  65. Find out more at: http://wiki.compilgames.net/doku.php/gdevelop5/objects/base_object#z_order
  66.  
  67. !action
  68. If an action doesn't run, remove its conditions and try again. If the action now runs, add your conditions one by one and see which one is the source of your trouble.
  69. If a conditionless action doesn't run, check the following:
  70. - the action is valid: double-click on the action, make sure its settings are correct.
  71. - no other action is interfering: in your events, look for actions of the same type, and/or actions which use the same objects. Try to disable or delete them to confirm the conflict.
  72.  
  73. !fsm
  74. If your animation doesn't change, start by confirming that there is no mistake in the related numbers and names (and quotes "" for the names).
  75. If your animation doesn't play at all or until the end, you probably have a conflict of animations. If you delete or disable the other animation events one by one, you should find the conflict.
  76. To avoid animation conflicts, consider adopting a Finite State Machine approach.
  77. Find out more at: http://wiki.compilgames.net/doku.php/gdevelop5/tutorials/finite_state_machine
  78.  
  79. !timer
  80. You want to delay your actions, repeat them over time or make them last a specific amount of time? Use a timer action to start a timer, and use a timer condition to check the timer's value.
  81. If you want the actions to occur again, don't forget to reset the timer.
  82. If your timer doesn't work, check all the names, CaSe and "quotes". Still stuck? Display the value of your timer in a text object to know what's going on. Use the Expressions blue buttons for that.
  83. Find out more at: http://wiki.compilgames.net/doku.php/gdevelop5/all-features/timers
  84.  
  85. !expressions
  86. If you want to use any value from the game that you don't know or that changes over time, you will need to use expressions to access them.
  87. On the right side of textboxes, click on the blue button to access the desired value. If you want to use a number in a string, don't forget to convert it.
  88. Find out all the available expressions at: http://wiki.compilgames.net/doku.php/gdevelop5/all-features/expressions-reference
  89.  
  90. !ID
  91. If you want to apply different actions to several instances of the same object, you need to be able to tell each instance apart.
  92. For that, you should apply an identification variable to each instance. You will then use that ID variable to apply your actions to specific instances.
  93. If your instances are created during the game, you can apply as ID a new variable that you will increase by 1 with each creation.
  94. If your instances are set in advance, maybe you'll want to use their X, Y or Z position as ID.
  95. Find out more at: http://wiki.compilgames.net/doku.php/gdevelop5/all-features/variables
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement