Skip to main content

Rollback netcode in Godot (part 10): Random Numbers

Submitted by David Snopek on Monday, 2022-05-30 @ 9:00am

This tutorial is part of the Rollback Netcode in Godot course. See the if you haven't already!

This is the 10th part in a tutorial series teaching how to implement rollback netcode in your game in Godot, using the Godot Rollback Netcode addon:

https://gitlab.com/snopek-games/godot-rollback-netcode/

In this part, we discuss the challenges of generating random numbers in a rollback-safe way, while also minimizing the potential artifacts. We then dig in, and use the NetworkRandomNumberGenerator node from the addon to add a teleport ability to our demo game.

Here's the Git repo with the tutorial code (see the 'part-10' branch):

https://gitlab.com/snopek-games/godot-rollback-tutorial
 

Ready for more? See the in this course!

Level:
Intermediate

All the tutorials in this course

Subscribe!

Subscribe to get an email when new articles or videos are posted on SnopekGames.com!

* indicates required

Comments

Add new comment
The content of this field is kept private and will not be shown publicly.

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.