dop2000's Forum Posts

  • Learn to use families - add all enemies to a family, remove Pathfinding behavior from individual sprites and add it to the family instead. With the family you will be able to reduce the number of events significantly.

    "Regenerate obstacle map" is only required if you add/remove/move obstacles, which I don't see you doing in your code. If you are only spawning new enemies, you don't have to regenerate the map.

    And if you do need to regenerate the map, just one action is enough, not six.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Run Preview.

    In Preview window (not in the Editor window!) press F12 and select Konsole tab.

    Also, try Chrome browser.

  • I tried your project and it works for me, the video is playing.

    How do you preview? Try pressing F12, check if there are any errors in browser console.

  • Funny, someone asked almost exactly the same questions 4 days ago.

    You can't write to JSON files. Well, it may be possible with some php script running on the server, but this will change the database for all users.

    Don't think that saving/loading 30-50K records in local storage will be a problem if you are not doing this too often. And of course, it depends on the data. You can estimate the size of your array/dictionary: len(Array.AsJSON)

    If it's less than a couple of megabytes, I guess you should be fine.

  • Right-click Videos folder and import your videos.

    In Video object properties set WebM Source= your video file name.

    It should start playing automatically.

  • You need to use "Regenerate obstacle map" action. On a big map this can cause lags, so when possible try to only regenerate a small region. And after that, you need to refresh path for already moving units.

    "Regenerate" is completed on next tick, so your event may look like this:

    Drag&Drop On Wall dropped	
     -> Unit regenerate region around Wall
     -> Wait 0
    	Unit is moving along path
    	 -> Unit stop
    	 -> Unit find path to...
    
  • I think what happens is you make player's time scale=1, and everything else 0.15, so your player is not slowed down.

    You need to use "System restore object time scale" action, instead of "Set time scale=1"

  • Need more information. Do you need a local or global leaderboard? If global - what platform are you making the game for? (web, desktop, Facebook, Android, iOS etc.)

  • Everywhere you have tokenat(tokenat(AJAX.LastData, i, "|"),1, ";") - wrap it in trim():

    trim(tokenat(tokenat(AJAX.LastData, i, "|"),1, ";"))

  • Array Push Back value x1 on X axis
    Array set value at (self.width-1, 1) to y1
    Array set value at (self.width-1, 2) to x2
    Array set value at (self.width-1, 3) to y2
    

    The array will grow on X axis (width), its height=4, depth=1.

    When you use "Pop on X axis", it will remove the entire row.

  • This is not a good solution, better use trim.

  • According to the documentation, "smart size" is the best option for banners.

    But it means that the banner height can be either 32, 50 or 90 pixels. How do I know the real banner height, to make sure that objects on my layout don't overlap with the banner? Or should I always allocate 90px?

    .

    Related question, that may be a bug - why after I hide a banner, I can't show it again? I use "Show the current banner advert" action, but nothing happens.

    Tagged:

  • Check the official template for Blend Modes.

    Both objects (circle and image1) need to be on the same layer and you need to set "Force own texture=yes" on the layer. Image2 (the one you want to open) should be on another layer below.

  • You need to use blend modes. Destination Out, for example. You can simply create a circle sprite under the mouse cursor on every tick, which will "erase" the top picture, revealing the picture under it.

    Or you can draw this circle on a Drawing Canvas, the principle is the same.

  • When you parse the text file, your names contain a line break in the beginning. If you make the text objects much bigger (taller), you will see it.

    Add trim() expression - trim(tokenat(tokenat(AJAX.LastData, i, "|"),1, ";"))