winstreak's Forum Posts

  • So I currently have a text set up to every tick display Browser.ExecJS("Date()") which puts out the date time etc.

    Currently it says Jan 30 2020 15:20:12

    I am looking for a way to say if the day portion = 31 do event or something along those lines so I can implement daily resets.

    Any ideas?

  • You do not have permission to view this post

  • That is what I have been doing with other things. I am up to 4 layers now, so I wanted to A: make my game less cluttered on the development side B: learn layouts

    At this point I save the game as I enter shot and then load the game as I leave shop. But this means when I spend in shop its erased by the load xD ... so I am tinkering with that right now

  • In game I enter a new layout when I go into shop.

    When I leave shop I go back to my initial layout.

    Is there a way to run this so that when I go into my shop layout, it puts my initial layout to the side (pauses or something). This way when I come back it is not running on start of layout events again but instead where ever I left off.

    Or maybe I should not be using layouts for this scenario?

  • Layout 2 was not using the same event sheet, thanks!

  • Ya I try to leave the same way I go in, just a different object is clicked

  • Trying to make things less cluttered for myself so I added layout 2.

    I have my game start with loading layout 1, and go to layout 2 when I open a store.

    Go to layout 1 does not remove me from the store O.O

    There doesn't seem to be a set layout 2 invisible/destroy option, where do I go from here?

  • Looking to add an enemy where I load in the stats he has remaining from his last fight with a different person.

    Player A does 20% damage

    Player B does 40% damage

    Player C should see a something with 40% health left

    Anyone have any links to a video or forum that covers something like this?

  • Thank you both for replying.

    I went with the comparing UID, it made more sense to me.

    :)

  • Hello,

    I am looking to destroy particles when the sprite they are pinned to is destroyed.

    I understand I can do it with a container, but the particles are added after the sprite is created. Thus, if I put them in a container it creates a 2nd sprite.

    Is there any event or event combination that is essentially:

    particle is pinned to object +

    object is destroyed

    =

    Destroy particle

  • Okay,

    Seems most everyone uses sprites as buttons, I might as well start doing that.

  • I am looking make it so buttons are set to invisible while they are overlapping a sprite.

    (Since buttons are always on top)

    This would then need to remove the invisible, or set buttons to visible while not overlapping.

    I figured a

    While

    Spite is overlapping Buttons

    =

    buttons are invisible

    but this makes an infinite loop :( any pointers?

  • Is there any way to make a global variable hold its value when I use System: Restart Layout?

    I guess I could store the value in a none global, but still curious if there is a work around built in.

  • It seems any time I am using Move To on a Sprite and then try to create something based off of sprite.x sprite.y it comes out incorrect.

    Any guidance on this?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • That should work fine, thanks!