Godot 4 Random Number Generator Beginner Tutorial

  Рет қаралды 15,405

Gwizz

Gwizz

Күн бұрын

Пікірлер
@aushijo
@aushijo Жыл бұрын
your tutorials are all very helpful! keep it up!
@Gwizz1027
@Gwizz1027 Жыл бұрын
Thank you so much!
@dylamon6547
@dylamon6547 Жыл бұрын
you need more recognition man
@lordofdarkness5505
@lordofdarkness5505 17 күн бұрын
Is there a way to randomize dialogue as well? I figured it out, you do basically the same thing but you use a array and use the *pick_random()* So it would look like: Array_name.pick_random()
@testchannel8151
@testchannel8151 Жыл бұрын
How do you spawn objects based on what number is selected on the number generator?
@Gwizz1027
@Gwizz1027 Жыл бұрын
take a look at my instantiation tutorial
@testchannel8151
@testchannel8151 Жыл бұрын
@@Gwizz1027 ooh thank you
@testchannel8151
@testchannel8151 Жыл бұрын
​@@Gwizz1027How do you spawn it in a specific place though, like a screen showing different pictures and such
@me551
@me551 Жыл бұрын
Can you please do a tutorial for how to code a randomizer that pics randomly specific words???
@Gwizz1027
@Gwizz1027 Жыл бұрын
You should be able to just apply this tutorial to that, maybe check out my Arrays and Dictionaries tutorial
@me551
@me551 Жыл бұрын
@@Gwizz1027 thank you
@squishmcmuffin
@squishmcmuffin 11 ай бұрын
thanks! using this for ggj!
@Gwizz1027
@Gwizz1027 11 ай бұрын
Haha awesome! I'll see you there!
@MFool64
@MFool64 3 ай бұрын
Can I make two RNG variables?
@HewLibTaco
@HewLibTaco 8 ай бұрын
I want to make something like this, but instead of numbers, it chooses from a list of sentences/words/basically any string of text. How would I do this? Basically want it so that when you click a button it gives you one of lets say 5 set text answers.
@Gwizz1027
@Gwizz1027 8 ай бұрын
Use an array
@drjavaid790
@drjavaid790 2 ай бұрын
How do you turn the numbers from the output into a label?
@Anshu-v1p
@Anshu-v1p 2 ай бұрын
I also wants to know.
@lordofdarkness5505
@lordofdarkness5505 15 күн бұрын
If you still don’t know, it should be: label.text = rng.randomiz(rng.randi_range(0-100))
@lordofdarkness5505
@lordofdarkness5505 15 күн бұрын
@@Anshu-v1p If you still don’t know, it should be: label.text = rng.randomiz(rng.randi_range(0-100))
@Charioteer_Lucian
@Charioteer_Lucian Жыл бұрын
Hey, this is a pretty hepful tutorial! I got a question tho, I was trying to use the RandomNumberGenerator to roll a six-sided die and depending on what was the result of the die you would get a result. I was using a bunch of if statement for the results but the program gives me the "invalid operands Obj and int in operator >=" which I suppose is because the RNG is an object while the numbers are integer but I don't know how to solve it really any suggestions?
@schnitzelhannes6431
@schnitzelhannes6431 8 ай бұрын
i would suggest to get good, this sounds like a skill issue
@Tanjutsu4420
@Tanjutsu4420 3 ай бұрын
how would i do this in 4.3
@Gwizz1027
@Gwizz1027 3 ай бұрын
did you even try it?
@Tanjutsu4420
@Tanjutsu4420 3 ай бұрын
@@Gwizz1027 extends Node # Called when the node enters the scene tree for the first time. var rng = RandomNumberGenerator.new() func _ready() -> void: rng.randomize() print(randi_range(0,6)) var num = {"one" : 0, "two" : 1, "three" :2, "four" : 3, "five" :4, "six" :5, "seven" :6,}
@Tanjutsu4420
@Tanjutsu4420 3 ай бұрын
@@Gwizz1027 extends Node # Called when the node enters the scene tree for the first time. var rng = RandomNumberGenerator.new() func _ready() -> void: rng.randomize() print(randi_range(0,6)) var num = {"one" : 0, "two" : 1, "three" :2, "four" : 3, "five" :4, "six" :5, "seven" :6,}
@Tanjutsu4420
@Tanjutsu4420 3 ай бұрын
@@Gwizz1027 i got it thanks
@SquidInkPizza
@SquidInkPizza 5 ай бұрын
I want to use this for a FNaF style title screen, where the animations can appear based in rng. Is that possible?
@-quoreo-7196
@-quoreo-7196 5 ай бұрын
I don't play FNaF and I'm a beginner coder, but I think you can achieve that by creating a function where you put the randomizer for the animations title, then just call that function it in the _ready() function
@hussainkin
@hussainkin Жыл бұрын
very helpful tutorials. can you explain drag and drop with snap?
@ScottDiBenedetto
@ScottDiBenedetto Жыл бұрын
i know hearthstone watched the hell out of this
@Gwizz1027
@Gwizz1027 Жыл бұрын
did it help you with your timer?
@ScottDiBenedetto
@ScottDiBenedetto Жыл бұрын
@@Gwizz1027 I haven't given it a go yet, but I will update you when I do :)
@ord3r781
@ord3r781 Жыл бұрын
Thanks
@Gwizz1027
@Gwizz1027 Жыл бұрын
np!
@Red_and_Black_Manic_Artists
@Red_and_Black_Manic_Artists 10 ай бұрын
thx
@AXAAAXAXXAXAXXAA
@AXAAAXAXXAXAXXAA Жыл бұрын
1:20
@Gwizz1027
@Gwizz1027 Жыл бұрын
? ya sorry I have a slight speech impediment
@Strelarck
@Strelarck Жыл бұрын
​@@Gwizz1027 don't mind him, I bet he has a tiktok complex where he can't keep focus for more than 20seconds
Godot 4 Sprite Sheet Animation Tutorial
6:44
Gwizz
Рет қаралды 61 М.
Godot 4: Switching Levels Made Easy
15:59
PlugWorld
Рет қаралды 27 М.
Hilarious FAKE TONGUE Prank by WEDNESDAY😏🖤
0:39
La La Life Shorts
Рет қаралды 44 МЛН
«Жат бауыр» телехикаясы І 26-бөлім
52:18
Qazaqstan TV / Қазақстан Ұлттық Арнасы
Рет қаралды 434 М.
What’s Wrong With Most Godot Tutorials (including ours)
9:27
Godot 4 Weighted RNG Tutorial
3:52
Gwizz
Рет қаралды 5 М.
This is better than @export | Godot Tutorial
18:20
Leif in the Wind
Рет қаралды 31 М.
How To Add Mobile Controls in Godot (Tutorial)
6:39
WisconsiKnight
Рет қаралды 11 М.
I recreated Balatro's effects in Godot
8:04
MrElipteach
Рет қаралды 48 М.
I Made the Same Game in 8 Engines
12:34
Emeral
Рет қаралды 4,3 МЛН
Everything about RANDOMNESS in Godot
11:34
MrElipteach
Рет қаралды 10 М.
Hilarious FAKE TONGUE Prank by WEDNESDAY😏🖤
0:39
La La Life Shorts
Рет қаралды 44 МЛН