User Tools

Site Tools


godot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
godot [2024/09/09 13:45]
admin
godot [2024/09/09 13:50] (current)
admin [Part 5]
Line 108: Line 108:
   * Set the ammo to '​3'​ and current_weapon to '​gun'​. ​ Test.   * Set the ammo to '​3'​ and current_weapon to '​gun'​. ​ Test.
   * Create a global script. ​ File -> New Script (based on Node). ​ Name it global.   * Create a global script. ​ File -> New Script (based on Node). ​ Name it global.
-  * Move the ammo and current weapon variables from the player ​script to the global script.+  * Move the ammo and current weapon variables from the ui script to the global script.
   * Open the project settings, in Autoload, add the global script and mark it global   * Open the project settings, in Autoload, add the global script and mark it global
   * Tweak the project setting page, allow fullscreen too   * Tweak the project setting page, allow fullscreen too
godot.1725885951.txt.gz ยท Last modified: 2024/09/09 13:45 by admin