Chroma72's Forum Posts

  • Been trying to get the Touch.Beta in script for about an hour now.

    Have tried lots of things but nothing is working.

    var a = runtime.objects.Touch.instVars["beta"];

  • So actually the child sprite was black (a key). But when another sprite which has no black pixels in it was a child, it wasn't blurry or ghosting. Very strange indeed! At this point I'm willing to just ignore it.

  • No I just position it then do Add Child. There's no repositioning on every tick.

  • I make the 2nd sprite a child of the 1st sprite, using Add Child. And then position the 2nd sprite to an image point on the 1st sprite. That all works fine. But when the 1st sprite moves around with Physics, the 2nd sprite has ghosting/is blurry. I'm guessing this might be a known issue that needs to be fixed. It's not game breaking but is definitely detracting from gameplay. I made sure it's not a collision thing by disabling the collision on the 2nd sprite, and the ghosting behavior is the same.

  • So I have a main sprite (parent) that uses the physics behavior and the stepping is set to framerate independent. The gravity is set to 15 and it flaps around like a bird. When I add a child sprite to the parent, the child has ghosting (like a small trail) as the parent flaps around. It looks like the child is being set to the parent position too late or before the parent actually moves to it's new position.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Just wanted to say that Construct 3 is pretty amazing. I've had a subscription for 3 years now and just started working with Timelines. So great! Good job guys and hopefully I'll get my app out there in the next few months.

  • Most of the issues you encounter while developing in a browser disappear when you convert your project to an APK through Cordova? And if not, which issues are still around? Yes, it's a very broad question. But just looking for lessons learned. Any info is appreciated.

  • You do not have permission to view this post

  • You do not have permission to view this post

  • I have two sprites and I would like to be able to go "If spriteA.myvar = spriteB.myvar" or something like that.

    I would rather not use containers or family. Any ideas?

  • I was using a lot of sub-events to do IF statements to set vars and was like..hmm...it would be cool if I could use ternary operators when setting variable values. I hit run and...WALA!! Happy camper here!

    Example:

    MyVar set to (a > b) ? a : b

    I would put a happy face emoji here but we can't use emojis on this forum. :(

  • Hmmm...neither of those triggers are working for me. Maybe the best solution is to just do a System Wait or does something else then make the sprites visible.

    EIDT: Wait For Previous Actions will do the trick.

  • Makes sense. And thanks for pointing that out.

  • So, I am creating 3 sprites in a function and setting them to Invisible. I then call another function that iterates the Sprite(s) and sets them all to Visible. The sprites do not appear.

    Maybe since the sprite creation and visibility settings are happening in a function, that the ShowSprites function is being called/finishing before the CreateSprite functions are finished?

    Putting the System Wait for 0.001 between the sprite creation and the ShowSprites function makes it work. But I'm wondering if there's a deeper problem.

    Pic attached so you can set up a similar experiment.

  • Worked like a charm. Thanks Kyatric!