dop2000's Forum Posts

  • If you don't have too many countries you can paint them in different colors and read pixel color under mouse cursor (using Drawing Canvas). Or maybe define lots of image points and find the nearest image point to mouse click, but this is a huge job as you'll need to do this for every animation frame..

  • Construct is a 2D engine, I don't know if there is a way to rotate 3D object.

    The only solution is to add lots of frames like this:

    dropbox.com/s/7rrjq240qvwsykq/slider-pulsar2.capx

  • Yeah, it's not helping.. Your event 35 is nested under 6 levels of other events, must be something there. I give up. It's good that it's working, but I wouldn't trust this solution too much.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Can you please post the screenshot? I am curious how "Wait for previous action" could have fixed it.

  • Yeah, but the solution may be wrong. "Wait for previous action" is only used after asynchronous actions. Putting it as the first action in event doesn't make much sense.

  • What actions do you have above it?? If you'd posted the screenshot of the entire event, we could have solved it much sooner!

  • Something like this:

  • I thought I already explained it multiple times.. Put Browser Log Player.angle into parent event. Put other log messages into each condition. Run the project, you should be able to see the angle value and which of the conditions is triggered (if any).

  • So you haven't tried it yet? Then how do you know that conditions don't work?

    Press F12, select Console tab, you should be able to see messages which you output with "Browser Log" action.

  • No, I'm sure the problem is in your code. Browser Log can help to find which events are triggering and which not, and why are they not triggered.

  • Well, I don't know why browser event doesn't work, I suggest you log a bug report.

    I would test on several devices and if they all show ConnectionType="none", use this method.

  • Well, that's your problem. Try to find why none of the conditions are triggered - put Browser Log Player.angle in parent event.

  • Try this - create a big Text object and On Network Change put:

    Text set text PlatformInfo.ConnectionEffectiveType & ", " & PlatformInfo.ConnectionRTT & ", " & PlatformInfo.ConnectionType

    See what values do you get. On my phone when I disable wifi and data, connectionType shows "none" and RTT=0, but you need to test.

  • Add debug output to your events, for example in event 40 add Browser Log "Not mirrored, frame 0" and so on. If you have other events which change player appearance, add logging there too.

    Run the game, open browser console (F12) and see what happens.

  • The behavior doesn't place the sprite correctly when it's disabled. And the floor/walls checks also don't work correctly when it's disabled.

    So if you need Platform behavior to be disabled, then your only real option here is to use Is overlapping and On collision events.

    You can use "On collision with floor" and then move the sprite in a loop 1px up until it stops overlapping the floor. And this will position the sprite correctly on the floor.