Magistross's Forum Posts

  • I agree with blackhornet, the maximum call stack can be easily reached if you having multiple objects fading simultaneously with tiny increment in opacity.

  • For each ordered ascending, using a distance() call as the expression. Add a stop loop if loopindex = 1 to limit the number of iteration to two.

  • An object cannot be in two containers. It's impossible from the current implementation. You could however use families as "fake" containers, having a family instance variable to bind each object together.

  • Or the hacky way, "For each ordered" with Object.Y ascending as order expression, with an exit loop as soon as the first iteration finishes.

  • Was there some newly created objects along the way per chance?

  • New version is awaiting approval ! The "long awaited" choice command is now in!

    fremachuca You ought to check it out, it might interest you particularly.

  • Yep, that's a classic case of array usage. Fill up an array with the UID of your sprites, then retrieve 2 of them randomly, removing them from the array while fetching.

  • Use the "Set wave" action (in a for each if you have multiple balls). It could look like this :

  • A while loop needs an exit condition or a "break" statement (stop loop). Otherwise it'll loop infinitely and cause your script to hang.

  • Yep, the following sentence might be the culprit :

    If you want AJAX requests to your server to work from any domain, or in preview, you can configure it to send the following HTTP header

    hat does "it" refer to, the server, the request, the AJAX plugin ? It seems to assume you know what a response header is and where it should be configured.

  • Sprite object all share the same set of animation and animation frames. You can't have two instances of the same object with the same animation name and frame that look different. One way to circumvent the problem would be to have a lot of placeholder animations and/or animation frames (depending on the needs), and keep a dictionary of the "mappings".

  • The number of rows is irrelevant as you will always have to search the entire array. The easiest method of doing it is a function with two local variables, that will return the index of the row with the minimum int. First, set the localVar1 to array.At(0,3) and localVar2 to 0, then Repeat array.width-1 -> if array.at(loopindex,3) < localVar1 then set localVar1 to array(loopindex,3) and set localVar2 to loopindex. After the loop, set return value to localVar2. Then you can access the array at the correct index and do whatever you want like Array.At(Function.Call("functionName"), [any y index]) to get a particular uid or the value.

  • You could try using the CSS "opacity" property of the slider bar so it becomes fully transparent (Set CSS style "opacity" to "0"). Transparent DOM control still function as normal, so this should work as you first intended.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can keep track of the "delta angle" using the anglediff function. It returns the smallest difference between 2 angles. i.e. 355 - 5 = 10 or 5 - 355 = 10

  • Yeah, that's basically adding an else statement to the first sub-event. Here's the capx, with added mumbo jumbo to hide all NPC but the "speaking" one. Not really necessary but I tried to reproduce your events as closely as possible.