Memuat
Memuat
Watch every step above performed live, with English narration.
0 plays
Class book
Page 1 / 6
Cover: Godot 4 Space Shooter Class #5: Shooting Laser and Main Scene
Click a page or use ◀ ▶ to turn · swipe on mobile · to enlarge
Want to go deeper?
Join one of our courses or ask us directly on WhatsApp.
Picked from the software, topic, and level of “Godot 4 Space Shooter Class #5: Shooting Lasers and Main Scene”.
Other ways we can help with Godot.
Learn with a mentor
Scheduled Game Development courses with live guidance and a certificate.

Course/Training Unreal Engine — Procedural Animation for Humans in Unreal Engine 5
★ 5.0 (60)

Course/Training Unity — Learn to Code by Making a 2D Platformer in Unity & C#
★ 5.0 (10)

Course/Training Construct 2 — Creating a Top-Down Shooter Game in HTML5
★ 5.0 (10)
Have it built for you
No time to learn Godot? Our team can do the project for you.

Development Service: Unity — Building a Battle Royale RPG Game Using Unity and Blender Ultimate Class
★ 5.0 (26)

Unity Development Services — Become a Unity Game Developer Learning Paths
★ 5.0 (12)

Development Service: Unreal Engine — Unreal Engine 4 – Build Your First Game with UE4!!
★ 5.0 (12)
Get notified about new Godot classes
At most one email a week. Unfollow anytime with one click.
The full narration of this video. The current sentence is highlighted while the video plays; click any sentence to jump there.
In this episode, the ship shoots lasers from its nose when the space bar is held down, with a regular firing interval, and the player is now in the main scene as a complete game. Hello, welcome to episode 5. Now our ship is learning to shoot. We use a timer for the firing interval, a pack scene to save the laser scene, and the instanciate function to create new lasers.
Open player.tscn. Add a timer named jeda tembak with a wait time of 0.2 seconds and one shot active. Open player.gd Add an exported variable laser scene of type pack scene and a shootable flag. In underscore ready, connect the timer's timeout signal to our function. In underscore process, if the UI accept key, which is space, is pressed and shootable is true, call the shoot function. The shoot function creates a laser with instanciate, places it at the nose position, and adds it to the parent scene. When the timer finishes, shootable becomes true again. Select player, then in the inspector fill the laser scene with quickload laser.tscn. Save. Open main.tscn. Click the instanciate child scene button and select player.tscn. Set its position at 270,820 in the center bottom of the screen. Save and press F5. Hold space while moving, and lasers will fire sequentially from the nose.
Want to make your own game? Cerdas Inovasi Digital offers game development courses with Godot, Construct 3, and Unreal Engine,
Education game and promotion game development services for schools and businesses,
as well as selling the complete project files of this tutorial, including assets. Want to master the entire series, from a blank project to exporting the game as a Windows application?
All 14 episodes, complete with step-by-step PDF guides, are available for premium tutorial subscribers.
Subscribe starting at Rp69.000 per month, save 28% with the 12-month package, or pay once Rp999.000 for lifetime access. Want just one class? Buy individual classes with lifetime access. Subscribe now on the premium page cerdasinovasidigital.com Contact us via WhatsApp, or visit cerdasinovasidigital.com Thank you for watching, see you in the next episode. Thank you for watching,
Type a question or keyword; we find the part of this episode that explains it and jump the video there.
Notes are saved with the current video time and are only visible to you.
Stuck on a step? Ask here; the instructor and other learners can answer.
No questions yet.

Cerdas Inovasi Digital Team
Software developers, BIM & 3D engineers, and AI practitioners
We build software, BIM models, games and AI automations for clients every day, and turn that hands-on work into step-by-step classes: every step is shown on screen and comes with a PDF guide you can keep.
See our clients →