Managed to convert this to a function which I can now use on any large number. Super handy. Thanks!
@Winstreak1 Жыл бұрын
That's awesome to hear Adam. Are you making a game with it?
@AdamBoothUK Жыл бұрын
@@Winstreak1 yes, I'm making Angry Boss where you've got to poke him until he explodes. That poke number gets pretty big. More a learning exercise than anything.
@Winstreak1 Жыл бұрын
@@AdamBoothUK That's great! My first learning project was an idle game and then I made 3 more of em back to back. If you are interested I have a pretty small discord, feel free to come post about it and/or ask questions if you get stuck: discord.gg/B74N5qrpvU See you around!
@SSJIN310 ай бұрын
Can you do the same tutorial for construct 3?
@Winstreak110 ай бұрын
Sorry, I don't make videos for Construct anymore. This video is still relatively the same for both Engines, if you want to attempt to build it and reach out if you get stuck, I will be happy to assist.
@SSJIN310 ай бұрын
@@Winstreak1 ok, Thanks you!
@venomgirls5 ай бұрын
say you had two seperate numbers you need shortened, can you use the same block of code and just attatch it to different value and text, or do you need to copy the whole block every time
@Winstreak15 ай бұрын
I would suggest making the value change into a function, so you can reuse it easier: forum.gdevelop.io/t/solved-quick-way-to-create-functions/51378
@ladeamon Жыл бұрын
Legendary, again thanks for this
@Winstreak1 Жыл бұрын
You bet, hope it helps!
@서호영-d5b10 ай бұрын
😍
@Winstreak110 ай бұрын
@roysun6222Күн бұрын
Hi this video has been super helpful! for cookie clickers if you have like say grandma cost / cps for every building, and we need to set up at least 2 variables for each of them. and write bunch of events?
@Winstreak1Күн бұрын
You have 2 values, the value before you run the formula and the value after. All calculations: purchases - gold over time - etc: should be changing the first value before the formula. Then you can feed that value (rounded) into the formula, to get the amount you show to the user, the 2nd value.
@roysun622223 сағат бұрын
@@Winstreak1 right, what I am trying to say is - this is just for total amount of cookie, like if we want to purchase the grandma, then on the grandma page it shows the price of the grandma(which will increase over time), and CPS value which will also increase over time, so that's two more numbers to show, which is another 4 new variables and 2 event trees. and then we will have farm, factory, bank etc.. so each of them will have their own event tree...unless we can make this function as a extension?
@Winstreak15 сағат бұрын
@@roysun6222 You definitely want atleast 1 variable for every different value you will have, holding the true number value. You can use the formula on each different true number - I would think the best practice would be turning this into a function that takes in a number variable. Anytime you display the value you would push the current true value into the function and set the text you are showing the user to the short form value. This value can technically be reused over and over in your event sheet - as long as you are getting the new value and using it 'displaying the text' before using the function again, the value is fine to be reused.
@KatoneMugen Жыл бұрын
Hello Winstreak! thank you very much for this tuto which works perfectly, your explanations are very very clear! For my part, I succeeded in setting up what you explained. However, I have a small problem: - In this idle I put 2 conditions to earn money: => 1: by clicking on the cookie => 2: money every second the problem is that point 2, money every second. Indeed, as it's 0.1 per second for example. This generates non-integer numbers and therefore breaks the results obtained via your tutorial. Do you know how to prevent the value from displaying digits after the decimal point (e.g. the 1 in 0.1) so that it remains integer and doesn't break the system? Thanks in advance for your help!
@Winstreak1 Жыл бұрын
Hey there Don Sur, First thought is to have a variable to hold the every second money. If it gets to 1 or larger you move the whole value into the overall money pool. So if you were gaining 0.3 a second. At 4 seconds you would have 1.2 in your pool so you would move 1 over and leave .2 in the pool to continue stacking. Feel free to join my discord for more in depth help: discord.gg/jhWtDdhen6
@nabsterthe29th9 ай бұрын
how can i go past Sx? im making an incremental game and i need alooooot of digits
@Winstreak19 ай бұрын
If I remember correctly, anything past Sx the Engine automatically changed to Scientific Notation. (ex 1.45e36) So you would just have to take the e value and divide it by 3 to figure out which magnitude to use. The rest we be pretty similar.
@nabsterthe29th9 ай бұрын
@@Winstreak1 it just shows me the number and 2 dots after it and then it switches between Sx and Qt (and maybe even Qa) so it would look like 1.00..Sx. i have no idea what to do to fix this
@Winstreak19 ай бұрын
@@nabsterthe29th Yes, the code that is in there changes the display of the numbers based off the length of the real value. Once the real value changes over to scientific notation then it stops growing. You would need a condition for checking if the real value is less than whatever the max value is for the engine. Something like 10 Sixtillion (10000000000000000000000) If it's less, use my code if its more make new code that changes scientific notation
@FilmsMrLittle Жыл бұрын
Hello, I limit the Camera to center in the player With Limits, BUT, since the game fit to the screen size, the limits of the camera is different with device, I wanna make the camera with the limit in a wall, BUT, the camera always pass the limit in my phone because the screen size is different, How I limit the camera Limits with every Device ? Its hard because the game needs to have the "Fits size" in the propriets of the GDevelop.
@Winstreak1 Жыл бұрын
Sorry friend, I don't make mobile games, I have never come across issues caused by different screen sizes.
@FilmsMrLittle Жыл бұрын
@@Winstreak1 It's okay, I just say the example, but this apply to PC too, I wanna say Even with the limits in the câmera, the. Câmera still fit the size screen, so other pc monitor (bigger then my) will pass the limit in the câmera that I put, because the game still have the ""fit size screen""