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 Жыл бұрын
How do you spawn objects based on what number is selected on the number generator?
@Gwizz1027 Жыл бұрын
take a look at my instantiation tutorial
@testchannel8151 Жыл бұрын
@@Gwizz1027 ooh thank you
@testchannel8151 Жыл бұрын
@@Gwizz1027How do you spawn it in a specific place though, like a screen showing different pictures and such
@me551 Жыл бұрын
Can you please do a tutorial for how to code a randomizer that pics randomly specific words???
@Gwizz1027 Жыл бұрын
You should be able to just apply this tutorial to that, maybe check out my Arrays and Dictionaries tutorial
@me551 Жыл бұрын
@@Gwizz1027 thank you
@squishmcmuffin11 ай бұрын
thanks! using this for ggj!
@Gwizz102711 ай бұрын
Haha awesome! I'll see you there!
@MFool643 ай бұрын
Can I make two RNG variables?
@HewLibTaco8 ай бұрын
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.
@Gwizz10278 ай бұрын
Use an array
@drjavaid7902 ай бұрын
How do you turn the numbers from the output into a label?
@Anshu-v1p2 ай бұрын
I also wants to know.
@lordofdarkness550515 күн бұрын
If you still don’t know, it should be: label.text = rng.randomiz(rng.randi_range(0-100))
@lordofdarkness550515 күн бұрын
@@Anshu-v1p If you still don’t know, it should be: label.text = rng.randomiz(rng.randi_range(0-100))
@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?
@schnitzelhannes64318 ай бұрын
i would suggest to get good, this sounds like a skill issue
@Tanjutsu44203 ай бұрын
how would i do this in 4.3
@Gwizz10273 ай бұрын
did you even try it?
@Tanjutsu44203 ай бұрын
@@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,}
@Tanjutsu44203 ай бұрын
@@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,}
@Tanjutsu44203 ай бұрын
@@Gwizz1027 i got it thanks
@SquidInkPizza5 ай бұрын
I want to use this for a FNaF style title screen, where the animations can appear based in rng. Is that possible?
@-quoreo-71965 ай бұрын
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 Жыл бұрын
very helpful tutorials. can you explain drag and drop with snap?
@ScottDiBenedetto Жыл бұрын
i know hearthstone watched the hell out of this
@Gwizz1027 Жыл бұрын
did it help you with your timer?
@ScottDiBenedetto Жыл бұрын
@@Gwizz1027 I haven't given it a go yet, but I will update you when I do :)
@ord3r781 Жыл бұрын
Thanks
@Gwizz1027 Жыл бұрын
np!
@Red_and_Black_Manic_Artists10 ай бұрын
thx
@AXAAAXAXXAXAXXAA Жыл бұрын
1:20
@Gwizz1027 Жыл бұрын
? ya sorry I have a slight speech impediment
@Strelarck Жыл бұрын
@@Gwizz1027 don't mind him, I bet he has a tiktok complex where he can't keep focus for more than 20seconds