Magistross's Forum Posts

  • Problem comes from your t variable. It needs to be reset to 0 upon completion of the show/hide animation.

  • Can you perhaps isolate those events and objects in a capx for me to look at ?

  • Events 10 and 13 in your screenshot are basically useless. They barely move the spr_cal_key, for the sole reason that they are run only once ! They don't "fall out of loop", because there are no loops involved here in fact. The "Every tick" terminology might have confused you into thinking this would run until your condition is met, but "Every tick" is actually a dummy condition that has no effect whatsoever, it simply there for those that don't like "empty conditions".

    Timer behaviors could be used to do what you want, and if using 3rd party plugins is ok with you, you might want to take a look at RexRainbow's MoveTo and lunarray's LiteTween behaviors instead.

  • You probably need a javascript warlock to do that. There's this JS library to generate a gif, so I guess one could wrap it in a plugin, and use it in C2.

  • NodeCount with your xpath seems to show the issue is not the asterisk, since it returns 1. Try adding a "/text()" to your xpath, it should select all the text under the node.

  • This is the perfect scenario where recursivity seems more intuitive than the classic iterative approach. Here, I modified your capx to integrate recursive power propagation. I added a visual representation for tiles with power so it's easily noticeable that the power line behave like you want them to.

  • Simple trigonometry with the clamp expression will also help you. See example.

    I also included a pin example.

  • Event 6 is wrong, you're setting the value at the index "Array.At(loopindex, 0)" when you should simply be setting the value at "loopindex". The kind of error I tend to make and NOT see it until I restart my events completely...

  • No no no, you CAN delete and insert entire row/column. Sorry if I sounded cryptic. It's only that adding and inserting must be done in multiple actions. Deleting a row/column is quite straightforward.

    Here's a simple example of a 2D array manipulation.

  • You can do pretty much anything with arrays. But the push/pop thing can be a bit daunting when using more than a dimension. You can't push complete rows, you have to push a single value on the X/Y axis, then modify every cell in subsequent actions, because the value is pushed to all cell of the added row/column.

  • simplisto ramones I just tried creating a simple plugin to retrieve the type name and it seems I was wrong. Type names get aliased on publish (with or without minifying), to something like "t0", "t1", "t2"... It seems using your own instance variable is the only way. Guess it's back to the drawing board for you simplisto.

  • ramones It certainly won't work after obfuscating. It would still work though if we created a behavior with the sole purpose of providing an expression to retrieve the instance type name. Variable names get obfuscated, but string literals doesn't.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I always wondered why there wasn't any mean to retrieve the type name at runtime. It's not like the variable isn't there...

    Using the Browser object's ExecJS expression, you can easily retrieve it though, it's just unconvenient.

  • To be fair, Regex would probably be the route I'd take to enable multi-dimensional "one-line" initialization. But as pokeapache said, that's just a silly amount of work just for the instantiation of a simple object.

  • Function object to the rescue !

    First parameter is the value to match to the closest between all other parameters.