dop2000's Forum Posts

  • Yeah, LiteTween or Tween is probably the easiest way, plus you can select a nice easing effect. On click pick all sprites above, set tween target to self.y-1000, pick all sprites below, set tween target to self.y+1000. On second click bring them back (in LiteTween you can use "reverse" action).

    100 objects with tween should not be a problem even on mobile.

  • You can use the family exactly the same way as you use objects - "For each Enemies", Enemies.UID, pick Enemies instances etc.

    One specific expression useful when dealing with families is ObjectTypeName, it returns the object name, for example you can use it in conditions like Enemies.ObjectTypeName="Zombie"

  • Sorry, I don't have any experience with this service. But if this a browser game, try pressing F12 and see if there are any errors in Console log.

  • 10 separate sprites will use more memory, but not much, maybe a couple of kilobytes.

    Lots of different objects make your project more cluttered, so it's generally a good idea to re-use and optimize them when possible.

  • If you apply a distortion effect like Crystal ball, you will need to account for it when determining which tile was clicked. There's probably a formula, but I don't know it.

    Also, I don't think it's possible to change image offset in runtime, this property is only available in editor. I guess it's not really needed, you can use two copies of the tilemap, or put two maps on one tilemap, and move the entire tilemap. But, you'll still need to prepare the array of all tiles and their corresponding countries. With 198 countries I imagine the tiles need to be quite small and this array will be really big...

    .

    As for my first suggestion - distinguishing 198 countries by color may not be very accurate. You need to put a small Drawing Canvas object in the position where the map was clicked, paste the map onto it, then do "Drawing canvas save snapshot", and after that you'll be able to read RGB values of the pixel.

  • El Constructorr I believe the questions was about new C3 functions, you can't call them like that.

  • 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.