jobel's Forum Posts

  • If you put all the events in an event sheet in an event group, you can then put static local variables at the top inside that group. Then these act like global variables scoped to one event sheet.

    Ashley wow, this seems awesome. Does this have any performance hit? I remember hearing subevents was no as efficient or something.

  • yeah I know about the first letter thing, I just have organized var names that often repeat the whole beginning, so it doesn't help me that much.

    I just think the drop down is an outdated way of doing it and it feels like a hand-cuffing. I much prefer the "System Compare Two Values" where you can type out your variable name. Ashley is there anyway (besides script) to assign a value by typing it out?

    I use DDicts, CSVs, Arrays, local and all that.

    just for controls alone I need all these:

  • AllanR is there a way to make a variable's scope only 1 event sheet? it seems like if I have the variable at the top level of the sheet (available to the whole sheet or layout) then it becomes a global.

    That would probably help a lot. For instance I have a ton of variables where I put the Sheet name at the front to tell me its only used on that sheet(layout).

  • Here I am trying to change the variable "Level_DHSize" to "Level_DHShape" (which is right above it)

    I can see the variable I want, but when I move my mouse down, it scrolls. So if I very carefully move my mouse around and approach from the side, then its okay.

    What am I doing wrong? I wish there was a way to just type in this field. I know I have lots of globals but I have a large game and this gets REALLY annoying.

  • I just do generic symbols

    but for incorrectly mapped controllers its a problem. in that case I would make another animation of single frames and just the glyphs be a generic button. I haven't really tested it yet, but I will have to at some point.

  • oosyrag wow that is thorough! :)

  • I would do round(random(1,100))

    that way any number 99.5 and above will be set to 100

    technically 1 and 100 have a less chance of coming up if you want every number to have an equal chance maybe:

    round(random(0.5,100.49))

    I think int just strips away the decimals.

  • make 2 families and put the Water object in both

    Then compare families but skip the same objects...

    sort of like this:

    although here I am looping through, in your case you just need the one trigger

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • hopefully you are using a laptop or something. if you are, take it to a place where there is public internet open construct, then never close or leave that TAB. Construct will work in offline mode I think for 2 weeks or something like that.

  • here's my final version. but I like newt's better since there's less stuff to do, and less objects.

    but overall it was easier than I thought.

  • omg, newt thats WAY easier!! haha

  • getting close... just have to figure out how to animate the frames.

    using the dist and angle and looping on dist, then using cos and sin to determine the x/y

    EDIT: also I think it needs spaces in between the dots (drawing the line manually) - not sure this is the best way to do this....??

  • I know there MUST be an example somewhere on these forums, but I can't find anything on this topic.

    I'm trying to do this:

    here's my version:

    dropbox.com/s/mpgm3yx44ksl74t/AnimLineTest.c3p

  • the only issue I ever had with this is if I use the On Destroy trigger. If you have code in a trigger like that, you should set a bool that ignores the first run through of the sheet, that way you can destroy objects in your Start of Layout without that trigger code running.

    so you would add

    On Destroy AND !runOnce(this is a boolean)

    then at the end of the sheet do:

    Trigger Once While True

    runOnce = true

  • yeah put all the object you are going to use in your layout. On Start of Layout add the action: Destroy for any object you don't need right away