facecrime's Forum Posts

  • yeah that's my issue, hadn't thought of going through a global variable tho. thanks

  • yeah, let me rephrase: how do I ramp up gamma per tick?

    not sure whether gamma would help me with my screen fade, what other smart options are there?

  • Hi,

    I'm looking for a smarter way to do a screen-fade than fading a screen-sized sprite/layer?

    Is there some functioniality in C2 for that?

    I found the layout effects and am thinking of ramping up the gamma dynamically through 'set effect parameter'. but what is the variable for that I would be increasing per tick?

  • guess we're talking about the same thing, what i want to delete is the line with the picked UID and its flag.

    thanks for elaborating, wasn't sure you meant what i thought you meant seems to be working now, thanks!

  • my approach was to go:

    array>for each X element

    compare: value at (loopindex,1) = pickedFlag

    action: delete row (loopindex) from X axis

    but I doesn't seem to work

  • Hi,

    I have a 2D array that contains a list of UIDs in row 1 and a flag in row2

    I pick a random line, do stuff with the UID and delete the line

    and then I want to find that other line that has the same flag to remove it as well

    could look something like this:

    UID Flag

    41 0

    45 0

    50 1 <- randomizer might pick this line for example

    53 1

    59 2

    62 2

    how do i find and remove the other ones that are flagged the same?

  • good stuff, thx

  • ah, good call!

    when adessing it do have to pick it first?

  • Hi,

    quick question, can kinda guess the answer: is there any way to have an array of values[] as an instance variable instead of just a value?

  • Perfect, working now.

    Thanks!

  • Hi,

    I have a switch case type of setup where I check a variable in my landing pods upon hitting the ground and depending on the variable make them spawn a different unit. In that event I also push the spawned unit's UID to an array to keep track of my spawned units.

    Now when I have two pods with the same variable the Array>Push front command does not seem to enter a vaild UID, I only get a 0 for that second UID.

    [attachment=0:1wkig28n][/attachment:1wkig28n]

    Is this an issue of the array command? Or is retreiveing multiple UIDs in one tick somehow problematic?

    Kinda clueless

  • Hi,

    i want to spawn enemies in waves and trigger events when all enemies of a wave are dead. I'm thinking to store the UID of every spawned enemy in an array and loop through my array to check on whether each enemy is still alive.

    I'm guessing I have a syntax error somewhere, cos it's currently not working and I'm not too sure I'm using the array commands correctly. So can someone please tell me where I'm wrong:

    Upon spawning I store the object's UID in the array, expanding it for new entries:

    [attachment=1:2dbjs0mp][/attachment:2dbjs0mp]

    I track my enemies by checking on each of them in a loop:

    [attachment=0:2dbjs0mp][/attachment:2dbjs0mp]

  • yep, that sorted it. threw in the 'Is touching object' and voila.

    thanks guys

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi,

    shouldn't this be working?

    [attachment=0:y99b7s8x][/attachment:y99b7s8x]

    It seems to be setting an incorrect angle though.

    Can anyone see the mistake? I'm half guessing that the event/tick sequence is working differently than I understood it, but I'm kinda clueless.

  • supporting this request, happening to be in need of that actually!

    been looking into the 3rd party solutions but those aren't as flexible as I'd need them to be.