Save All Of Your Objects With 1 Event - GDevelop

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ธ.ค. 2024

ความคิดเห็น • 88

  • @GDevelopApp
    @GDevelopApp  ปีที่แล้ว +8

    CAUTION! The way variables are presented in this video is out of date, see the updated variables video here: th-cam.com/video/Gh9WPecRnxo/w-d-xo.html&ab_channel=GDevelop
    Be sure to check out our other advanced video on saving / loading all of the variables in your game with just 3 actions:
    th-cam.com/video/Fm-BJDTaBCg/w-d-xo.html&ab_channel=GDevelop

  • @Icomplaintoomuch
    @Icomplaintoomuch ปีที่แล้ว +3

    Its good that the video has both "showing finished product" part, and the step by step part, so depending of the person they could be able To figure out the workings from a glance.

  • @GargantuanBreadfruit
    @GargantuanBreadfruit ปีที่แล้ว +9

    I would have never thought to save all the object variables in the same level of the array one after another using the climbvariable variable. Really clever! I always muddied things up by storing the location and such in separate arrays or nesting them in their parents, but this is so much more elegant. Genius!

    • @GDevelopApp
      @GDevelopApp  ปีที่แล้ว +3

      Thank you. 👍
      The set up started off much more complicated, but I kept cutting and cutting until I had the simplest version I could come up with. And of course others in the GDevelop community had input too, so it was a group effort. 👍
      -Wesley

  • @FlorianRival
    @FlorianRival ปีที่แล้ว +4

    Probably something that took me a lot of time to figure out when I started video game creation when I was young. Glad that this shows how to go step by step and how this can be extended. Once someone understand this, they understand all the basics of arrays (and can learn about structures) - which is super useful for making any game or algorithm!

    • @GDevelopApp
      @GDevelopApp  ปีที่แล้ว

      Definitely. Hard to learn, but once you understand it, you're set to make much more complicated save/load structures using arrays in the future. 👍
      -Wesley

  • @Leon.O777
    @Leon.O777 ปีที่แล้ว +7

    This is the tutorial that we needed

    • @GDevelopApp
      @GDevelopApp  ปีที่แล้ว +4

      I hope it is! I think this video will be very useful to people trying to make games that require you save objects. I see it mostly being useful for city builders, tower defense games, farming games, survival games, and really just any game where the player is allowed to move or change things in the level. 😅
      -Wesley

  • @ven4zra
    @ven4zra 11 หลายเดือนก่อน +1

    thank you so much, i was making a level editor game and i was gonna give up on server uploading but then this video got recommended
    i couldn't figure out how to make multiple of the same object save

  • @RosleStudio358
    @RosleStudio358 ปีที่แล้ว +1

    I’ve been having problems with saving and loading. This is the tutorial I really needed, thank you

  • @Stefano_Gaming
    @Stefano_Gaming ปีที่แล้ว +3

    This is exactly what I was needing in a recent game I'm working on 🤩
    Thank you so much!!!!

  • @thedarksaiyan5177
    @thedarksaiyan5177 ปีที่แล้ว +1

    Ever since I found GDevelop, I fell in love with it it was so simple, it had a loving game community, I hope for this game engine to grow even more😊🙏

  • @sviluppiamomaccheroni
    @sviluppiamomaccheroni ปีที่แล้ว +1

    One of the best video made by Gdevelop, Keep going like that ❤

  • @MrJumpingj
    @MrJumpingj ปีที่แล้ว +2

    I love GDevelop semplicity

  • @yassinepab5689
    @yassinepab5689 ปีที่แล้ว +1

    THANKS I WAS LOOKING FOR THIS IN LONG TIIIME! 😮

  • @zenoviano1668
    @zenoviano1668 ปีที่แล้ว +1

    Can you make a tutorial for saving a Progress? Im trying to make a game with story in it (like character, Weapon, etc)

  • @JustAGameDeveloper
    @JustAGameDeveloper ปีที่แล้ว +1

    I need this tutorial!

  • @rei7957
    @rei7957 ปีที่แล้ว +1

    Can you give tutorial to use firebase? We very need that :(

  • @tfw_thevoid
    @tfw_thevoid ปีที่แล้ว +1

    Thanks for the tutorial! Is there a difference between using an array vs a structure? Like with a structure would you still need to list each and use the climbvariable? I'm a little confused on when its better to use an array vs a structure and vise versa

    • @GDevelopApp
      @GDevelopApp  ปีที่แล้ว

      A structure is fixed, but an array will expand to add as many variables as you need.(In this case, as many objects as you need)
      It's a little complicated, but I think our tower defense video does a good job of explaining arrays and how to use them. And if you still have trouble after that, try reading the GDevelop wiki, there's lots of information there that might help.
      -Wesley

  • @TackerTacker
    @TackerTacker ปีที่แล้ว +1

    You have these nice structs in GDevelop, why aren't you using them instead of having to add this weird ClimbVariable you would have to constantly update every time you add another property to the save?

  • @ricogoins
    @ricogoins ปีที่แล้ว +1

    Ik very few people would use this. but show how to get json from web server and use data from that in game

  • @hanzflackshnack1158
    @hanzflackshnack1158 ปีที่แล้ว

    May I ask someone more clever than me a question?: I followed this tutorial then realized I can use "pick a random" then apply that to the X and Y coordinates in order to randomize the spawn location of saved objects upon loading.
    What I'd like to do is make the wildlife in my game appear to be organically meandering rather than teleporting every time the level loads. I'm sorry that I'm very new at this I feel like if I dig I could find an answer... Is there an elegant solution to making the respawn points tied to... maybe a timer that only allows incremental distance from original spawn location so it looks like the animals are going about their regular life even when you're off screen?

  • @cajayt
    @cajayt 6 หลายเดือนก่อน

    Hi, I already asked this in the forum but I don't find the answer. Is it possible to extract a list of variables from a string? How?

  • @95mcqueen5
    @95mcqueen5 ปีที่แล้ว +1

    This is awesome! Does it work for mobile games as well?

    • @GDevelopApp
      @GDevelopApp  ปีที่แล้ว

      Yup! Arrays work the same way for mobile games too. 👍
      Saving externally, as mentioned at the end of the video, might work differently from platform to platform, but internally a global variable array can be used to switch from one scene to another and load in all of your objects. 👍
      -Wesley

  • @iduruf14364
    @iduruf14364 ปีที่แล้ว +2

    How to make an iron chain suspended from the ceiling and move 🥺

    • @GDevelopApp
      @GDevelopApp  ปีที่แล้ว +1

      Probably using the physics behavior and joints.
      Here's an example game that uses them: gdevelop.io/game-example/free/
      Hope this helps. 👍
      -Wesley

    • @iduruf14364
      @iduruf14364 ปีที่แล้ว +1

      @@GDevelopApp
      When I click on the link it shows me this
      Oops, the page does not exist!
      It is possible that you have mistyped the address or that the page has been moved.

    • @GDevelopApp
      @GDevelopApp  ปีที่แล้ว

      @@iduruf14364 gdevelop.io/game-example/free/physics-joints-demo
      Sorry, I must not have saved the whole link.

  • @Jd2sryt-arc
    @Jd2sryt-arc ปีที่แล้ว

    Smart tip: Do not name your object group and array variables the same thing !! I spent like 2 hour figuring out why was the "Load" button not working in my game. why am I like this

  • @buzzmandev4017
    @buzzmandev4017 ปีที่แล้ว

    How performant is this?
    say for example you walk out and back into a room with saving the objects like this, would it take a long time to load them all?

  • @fabriciolanzillotti9153
    @fabriciolanzillotti9153 ปีที่แล้ว

    I have a small question, I am learning to use gdevelop, when I search for an action with the search engine within the events tab, all the actions appear, when I try to search with the drop-down menus only one or two options appear, why can this happen? I want to explore all the actions that are possible with gdevelop and in my case they don't appear. Thank you so much!!!

  • @TypAusHamburg
    @TypAusHamburg ปีที่แล้ว

    Somehow, this will stop working, if you got a scene change in between, like switching from startmenu into the main scene - any hint why?

  • @Leothekitten001
    @Leothekitten001 2 หลายเดือนก่อน

    Wait why when you refreshed the debugger the preview didn't get covered by the debugger?

  • @shisuiuchiha1168
    @shisuiuchiha1168 ปีที่แล้ว

    Can you explain to me how the pre-release differs from the latest version of Gdevelop?

  • @mystroskipped8350
    @mystroskipped8350 ปีที่แล้ว

    Amazing tutorial👍, could you also do a tutorial about inventories 🙏

  • @LolpStart
    @LolpStart ปีที่แล้ว +1

    I have a question before starting Gdevelop. Is it free on mobile and is it safe? I mean, it does not publish game files. Thank you

  • @gamesandtips9524
    @gamesandtips9524 ปีที่แล้ว +1

    Very helpful

  • @khaiphi4630
    @khaiphi4630 ปีที่แล้ว +1

    Super excited

  • @TienPham-kl7tf
    @TienPham-kl7tf 3 หลายเดือนก่อน

    How can i store Object animation value index/name in save and load? I don't see the option to choose animation

  • @TheRealAlpha2
    @TheRealAlpha2 ปีที่แล้ว +1

    I'll be honest, I think I felt my brain starting to bleed. Still easier to follow than a lot of other game engines though.

    • @GDevelopApp
      @GDevelopApp  ปีที่แล้ว +1

      I get that, I moved this video to the "advanced" official tutorials playlist because it deals with a lot of things that most newer users wouldn't be able to do. But once you figure it out, it's really powerful. 👍
      -Wesley

  • @jmystigan
    @jmystigan ปีที่แล้ว

    i was watching you!, .. i knew you would figure something out! to make a save! took long enough! (years later) but im patient.

  • @MarcosCodas
    @MarcosCodas ปีที่แล้ว +1

    This is so nice

  • @night_shadow9641
    @night_shadow9641 ปีที่แล้ว

    Please make a tutorial about inventory

  • @Jurfix
    @Jurfix ปีที่แล้ว +1

    Is it possible to save a rendered sprite using the Sprite Snapshot extension?

    • @GDevelopApp
      @GDevelopApp  ปีที่แล้ว

      I've never used that extension before, so I'm honestly not sure. 🤔
      -Wesley

  • @RedIvation
    @RedIvation ปีที่แล้ว +1

    Nice video!
    But I wanted to know, how I can do the opposite of this. Like instead of creating the objects into the scene when you save and change the scene.
    The object is added in the editor. And in game when the object is deleted, change the scene the object should stay destroyed.

    • @GDevelopApp
      @GDevelopApp  ปีที่แล้ว +2

      Hmmm. 🤔
      You could give each object in your game a "destroyed" variable, and when saving "all objects" use that variable as one of the conditions, so you only save objects that have the variable set as "destroyed". And then when "loading" that information back in, delete any object at the X/Y of the previously destroyed objects.
      You would need to hide any destroyed object instead of deleting it, so it'll be saved in the array. But, you could do something that way. 🤔Just make sure to check your debugger tool to see what's being saved and if it's the right objects or not.
      Hopefully that idea helps. 👍
      -Wesley

    • @RedIvation
      @RedIvation ปีที่แล้ว +1

      @@GDevelopApp thanks, I'll try and see if it works..

  • @luizmattos9031
    @luizmattos9031 ปีที่แล้ว

    valeu obrigado. Muito bem explicado. Já deixando aquele super like maroto.
    thanks. Very well explained. Already leaving that naughty super like.

  • @Penumbra-c9n
    @Penumbra-c9n 7 หลายเดือนก่อน

    Great tutorial but is there a way to save things like the player maximum health, current expert, coins cause I am trying to make game with a little Leveling system and I am having issues with saving those things

    • @GDevelopApp
      @GDevelopApp  7 หลายเดือนก่อน

      We have 2 other videos on saving/loading variables on this channel, those might help.
      www.youtube.com/@GDevelopApp/search?query=save
      If you're looking to save and load a bunch of variables, you can put them all inside of a structure and save/load that in to your game. You can also just save/load single variables in the same way.
      Hope those videos help. 👍
      -Wesley

  • @Shadowthevampire
    @Shadowthevampire 5 หลายเดือนก่อน

    Please make this video again but with an actual rpg example like in the thumbnail Its hard for me to...understand whats going on when my game don't have the same genre, my game is an RPG not a husebuilding game I think the thumbnail was very misleading, and also you have some things added that you haven't explained like what is "the "climb" variable used for? Thank you for making this engine and for all tutorials. also plz make part 2 for the farming game tutorial make all of these tutorials into series you only cover a brief portion usually of how to make a game.

  • @minedude467
    @minedude467 11 หลายเดือนก่อน +1

    Please game file am having troubles

  • @anonymunterwegs3047
    @anonymunterwegs3047 10 หลายเดือนก่อน

    I would make a global variable which changes after X things are done by the player oder after Y time.

  • @mattman92
    @mattman92 ปีที่แล้ว +1

    Can you make one where its like this but you export it on to your pc?

    • @GDevelopApp
      @GDevelopApp  ปีที่แล้ว

      But you export it to your PC? Do you mean do this but save it to external storage?
      Then definitely, just put it in the array, and then save that array externally. The video linked in the pinned comment shows how to save the whole array externally and loading it back in. But I do suggest using the global variable first, and not trying to save directly to external storage. Some platforms and browsers don't allow external storage.
      Hope that helps. 👍
      -Wesley

  • @Vito18395
    @Vito18395 ปีที่แล้ว

    🤩Incrível muito legal esse sistema

  • @Shadowthevampire
    @Shadowthevampire 5 หลายเดือนก่อน

    Okay but can this be used to like if your game hs a shop in one scene and you want to keep the thigns you bought and let them be shown when you get back to your regular house scene like in stardew if I go to piere buy a seedpack and go out from there into my farm that seedpack is in my backpack still. Can this be used here and how? Ive made a working shop system in my game in one seperate scene but I have no idea how to like transfer that info into another scene

    • @GDevelopApp
      @GDevelopApp  5 หลายเดือนก่อน +1

      You can. Once your global array exists, you can manually add variables to that array. So when the player buys the objects, you can add that to the array. 👍
      -Wesley

    • @Shadowthevampire
      @Shadowthevampire 5 หลายเดือนก่อน

      @@GDevelopApp Thats great I just found a trouble...you cant name children of arrays so I have no idea on how to keep track of what is what...

  • @Shadowthevampire
    @Shadowthevampire 4 หลายเดือนก่อน

    I cant find the "add text variable" action anymore what am I suppose to use instead?

    • @GDevelopApp
      @GDevelopApp  4 หลายเดือนก่อน +1

      Instead of specific actions for different types of variables, now you declare the variable ahead of time and set it to a text variable, then you can use it in the action "variable value". 👍
      -Wesley

    • @Shadowthevampire
      @Shadowthevampire 4 หลายเดือนก่อน

      @@GDevelopApp Thank you! I followed the tutorial but the save load functions does not work :/
      Only the delete function does.
      I'm not sure what to do. I copied it just like it was in the video. And one more thing I noticed in your example you never switched scene so would it save between scenes?

    • @GDevelopApp
      @GDevelopApp  4 หลายเดือนก่อน

      ​@@Shadowthevampire In the video the array is a global variable, so that variable will persist between scenes. 👍
      I haven't heard anything about the save/load actions not working, so I would try using the debugger tool in engine to see what your variables are and see what's going on.
      We have a video on troubleshooting (th-cam.com/video/8krGoBuQpBI/w-d-xo.html&ab_channel=GDevelop) but I would test with a single variable first to see what's being done wrong with save/load and then try to tackle the array again afterwards.
      I hope that helps.
      -Wesley

    • @Shadowthevampire
      @Shadowthevampire 4 หลายเดือนก่อน

      @@GDevelopApp Thank you so much for continuous answers Mr Weasly. I figured out what was causing it.
      Then I realised I might not need scenes and instead make a open world type of game.
      I'm not sure
      Either way I would like to learn how to save and load the game so it actually saves like open game click load save file and you are from where you left of. I still haven't found a video explaining this easily enough with a normal rpg example..I watched your save and load intermediate advanced etc but they were a bit hard for me to grasp. And not all games ue "save points" etc.

  • @BlahoogaDMD
    @BlahoogaDMD ปีที่แล้ว +1

    In… 1 event?!?!?! I only ever used save to memory and save to json file

    • @GDevelopApp
      @GDevelopApp  ปีที่แล้ว +1

      You can save this directly to an external json file and load it back in from that external storage, but I've had trouble with some browser and platforms not allowing external storage, so sending it to a global array first helps it work regardless of platform. And then you can always save/load the array externally as well. 👍
      -Wesley

  • @Low_by2009
    @Low_by2009 11 หลายเดือนก่อน

    I am making a minecraft clone and for the chunks load and unload i will try to use this

  • @yoshicakes
    @yoshicakes 7 หลายเดือนก่อน

    im having trouble combining the 2 videos
    can you help?

    • @GDevelopApp
      @GDevelopApp  7 หลายเดือนก่อน +1

      The best way to get help with your project is to reach out to the community on our discord server, you can share screenshots of your project and better explain the issue you're having there.
      -Wesley

    • @yoshicakes
      @yoshicakes 6 หลายเดือนก่อน +1

      @@GDevelopApp thx but i think i finally figured it out lol!
      still joined the discord tho :P

  • @Low-End-PC-IntelHd-Paradise
    @Low-End-PC-IntelHd-Paradise ปีที่แล้ว +1

    Plz make a video about how to use tiled with gdevelop tilemap plz❤

    • @Low-End-PC-IntelHd-Paradise
      @Low-End-PC-IntelHd-Paradise ปีที่แล้ว

      @HOFMC-OFFICIAL there is but it bad expalined they explain better especially wesly

    • @GDevelopApp
      @GDevelopApp  ปีที่แล้ว

      We're planning on re-doing the entire intro tutorial playlist, so some of those videos will be re-done in the future. But there's also LDTK support now as well, we don't have that in a video, but there are some example on the wiki. wiki.gdevelop.io/gdevelop5/objects/tilemap/
      Hope that helps. 👍
      -Wesley

  • @777.1
    @777.1 ปีที่แล้ว

    How to make objects:
    Rubber
    Slippery
    Soft?

  • @minedude467
    @minedude467 11 หลายเดือนก่อน +1

    Pls😢😢😢 game file

  • @ZWİstudio
    @ZWİstudio 2 หลายเดือนก่อน

    dont work now

  • @csabixshow5708
    @csabixshow5708 6 หลายเดือนก่อน

    1:14

  • @ZWİstudio
    @ZWİstudio 2 หลายเดือนก่อน

    add text varieble no found

  • @SY4M13
    @SY4M13 ปีที่แล้ว

    help me!!! i want to make turn based game please help me

  • @irayala
    @irayala ปีที่แล้ว +1

    easy

  • @alilougfu7668
    @alilougfu7668 ปีที่แล้ว +1

    WOOOOOOO

  • @gaddied
    @gaddied ปีที่แล้ว +2

    Gdevelop free ? ❤

    • @GDevelopApp
      @GDevelopApp  ปีที่แล้ว

      Open source and free to use. 👍
      -Wesley

    • @gaddied
      @gaddied ปีที่แล้ว +1

      @@GDevelopApp thank you ❤️❤️❤️ 🇲🇦❤️ Gdevelop