KSLR's Forum Posts

  • I will look over your code to see how to improve mine. Thank you again.

  • Thanks for the examples and reply. I ended up making it work by plopping in a pause waiting for the last action to finish. I would like to learn how to make cleaner code on my event sheet. I find I get pretty wild.

  • Thanks for the reply igortyhon

    I read through that save game thread. I have a somewhat simpler setup just storing a list of variables. I think my issue may be with loading or it even saving in the first place. I noticed they was a wait for events to finish type event on the load. Maybe that is what I could be missing.

  • Hey everyone, When you use the save and load function it seems to save the entire state of you game, levels included, positions of enemies etc. I don't really want that with my game. I want to save out a hand full of a global variables. I am currently trying to save some stats in a dictionary and saving and loading to local storage. Is this the correct method of managing save games? My code is sort of bugged now but this is what it looks like currently. Any help or direction would be greatly appreciated.

  • Hey Fib jobel I did have a version using Tweens and it didn't how I would like. The tweens cannot reset and pressed again. It does however have a smooth transition of course. :) NetOne I couldn't figure a way to reset the sine when done.

    newtThanks so much for making an example! This is a cool method. Is this how screen shake works too?

    Thanks everyone for helping out.

    :)

  • This is what the code currently reads like

  • Thanks again newt for the example! it works great on a single object now I must figure out how to get it to work on a single instance of a family. I have it individual family instances wiggling but they wiggle themselves out of place and don't seem to be setting their x and y correctly at start.

  • Thanks for the reply newt I will try this as soon as possible. Thank you.

  • Thanks for the reply Plinkie,

    I was thinking something more procedural. So any button of a button family will wiggle using scale, rotation etc.

    I am looking for an elegant way of doing a little bounce on touch.

  • I want to have the buttons in my game wiggle when you press them like in many mobile games. I tried using tweens and sine behaviors but I think there may be a more elegant and function way. Does anyone have insight on such wiggly subjects as this?

    Thank you.

    Tagged:

  • I want to do some dev on my ipad but the columns are silly thin. Is there any way to do that? Also wondering if there is a way to get colour selection on in the sprite editor on mobile. Are these features not available?

    thank you.

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for the replies everyone. My code was getting gross and messy and I just rewrote it better. I must have had it set to static? I also need to learn more elegant ways of using Construct. :) I am still bashing around until things work. hahaha

    cheers.

  • Is it possible to edit a variable from inside a function?

    I haven't had any luck testing this out. I just had a simple function that needs to change and external variable. I am guessing this isn't in the scope of a function.

    Thank you very much in advance.

  • I made a general function for every time a button is pressed I want the buttons to wiggle. It seems to wiggle all buttons of the button family. Is there a more elegant way of doing this? Also using a tween is great but its unresponsive once you press the button. Is there a way to reset a tween or maybe use a different technique for this? I am tying to make bouncy buttons like you see in Clash Royale.

    Tagged: