Jhunter2551's Forum Posts

  • 9 posts
  • You do not have permission to view this post

  • Hello,

    I am attempting a little mechanic where the player is inside of a rotating dice. I want to make it so that when the dice rotates, any objects on the floor rotate with the walls. Currently, I am attempting this effect with an object with the rotate behavior on it. But as the video I am attaching in a link shows, the objects simply end up in the same place every time.

    Any idea how I could make the objects stick to the floor essentially until the rotation is finished so that it creates interesting puzzles? Or if there is a different and more feasible way to accomplish this?

    Any help would be amazing.

    drive.google.com/file/d/16G50EfkwNdAlsbOTvht0Z1e-O0Scxl2v/view

  • The built-in savegames feature should work fine in NW.js as well.

    How so? I downloaded the folder with the executable and I use the save feature to save to a slot, then that save works as long as the exe is running. When I close it and reopen it, the save file either didn't save or is not there. Am I using the save load feature wrong, or is there something I'm missing?

  • Hey all,

    I am working on a pretty large metroidvania and I am at the point where I need to focus on the save file system. I thought I could simply use the save and load system actions but they don't seem to work when exporting and playing on NW.js, which is what my plan is. After reading the documentation, it appears the save and load files only work in the browser? I am generally confused by how they work. I am aware that I could use local storage to store keys, but I'm hoping there's a better way (since I need to be able to save things like enemies and items with the persistent behavior).

    Basically I'm asking if there's a way to save the state of my game (or even just save all the variables and persistent objects) so that when the player closes the game on NW.js and opens it again, the save file is still there?

    Any ideas or explanations of save and load would be very helpful. I am still new to the concepts and I'm trying to figure it out.

    Thanks!

  • Hello,

    I have a situation in my game when the player gets an item. A screen comes up with details about the item, setting the timescale for the entire game except for the sprites on screen to 0.

    I need to have a sound effect play while this happens, but I can't because the time scale is 0.

    Is there a way to make only one audio clip have a regular time scale, or even a way to set the audio plugin's time scale? I'm having trouble finding anything.

    Thank you!

  • if all you want to do is not repeat the previous one, then you could save the previous choice and make a While Loop keep generating a new one until its not equal to the previous.

    just make sure to save the one you pick as the "new" previous one

    something like this

    This looks like what I need it to do! This will definitely work for the finite state machine enemies, but I'm wondering if you have any ideas on how to log the audio file that is chosen as the new previously played?

    Because it chooses from a list of sound files, I don't know how to track which one it chooses.

    Either way, your suggestion is very helpful. Thanks!

  • Hello,

    I've been struggling but largely ignoring this problem in my game for a while. I'm developing a metroidvania that involves a lot of situations where this crops up. Most of my bosses are developed using a finite state machine, so most of the time there in an event saying something along the lines of: "set state [choose("state1", "state2", "state3")]. When the state is chosen, there are some times the same one will play over and over due to random chance. I have also had issues recently when adding sound effects. I have 4 footstep audio files but when I choose randomly, it often plays the same sound multiple times in a row, which sounds off-putting.

    The main question is: How can I choose randomly from a set of STRINGS and not get the same one twice in a row?

    I have looked into advanced random features such as permutation tables but they mostly include numerical systems. I would assume there's a way to set strings equal to the numbers in the permutation tables or something but I am not familiar enough with advanced random to think of something.

    Are there any simple solutions I'm missing? Or what is the most efficient way of implementing something to regulate this?

    Any ideas would be great.

    Thanks!

  • See I would do that, but there’s honestly way more things I want to stay persistent than there are enemies. Small things like pickups, chests, and gates. Adding all of those as variables would be very cumbersome I think so I’m trying to avoid doing that if possible.

  • Hi, I’m currently working on a metroidvania in which enemies and doors and gates and many objects have the “persist” behavior. This way, when the player opens a gate and travels to another layout then comes back, the gate is still open. Similarly, I like for the enemies to stay dead. However, when a play saves, I want enemies to respawn. There is an event for “reset all persistent objects” but is there a way to only reset a family (such as an “enemy” family)?

    Thanks!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I’ve actually been working on a devlog series for my game I’m making in construct. I am looking for feedback on how to improve, so if anyone could check them out that would be awesome!

    youtube.com/playlist

  • 9 posts