Nabu's Forum Posts

  • Hello ? Nobody ?

  • Hello,

    Here's a little capx to display a pathfinding problem. Any click to move the red sprite. Try to go left or right and see that it can pass through diagonal walls. R to retry and space to display obstacle map.

    https://www.dropbox.com/s/ta0lowufer55sm6/PathfindingProblem2.capx?dl=0

    Is this an intended behavior of the pathfinding plugin ? I use a cell border of -1 because otherwize the obstacles are way too large. And a cell size of 32, the size of the tiles. Why does the pathfinder ignore the size of the object that's moving, and make it pass through diagonals.

  • Hello MarkeGamer,

    I've never used the touch but, basicaly I think just check the direction of the touch (with somethin like touch start and touch end, I don't know) and apply an impulse with Chipmunk physics at that direction or an angle (switch to polar when setting the impulse).

  • R0J0hound,

    I didn't think of tiny tilemap, or pasting a little sprite. Thanks for the tip.

    It is a bug in your plugin using WebGL ? Or does it come from WebGL only ? It's strange.

    Thanks for your help.

  • Hey R0J0hound,

    I was using WebGL, and the problem doesn't occur anymore when I disabled it. Everything is correctly drawn without it. So you're right it's related to WebGL. So what can I do ? I used the Paster plugin because of that, in comparaison with Canvas.

  • What do you mean by orientation, scrolling ? In project properties, under Configuration Settings, you have orientations option, landscape, portrait.

  • Hello,

    Check every tick or every seconds if the object's size has reached a value, then disable the Sine behavior and set the object's size by yourself if needed (using scale object property, or dimensions directly).

  • No it's not mainly for big projects. It ensures that all ressources are loaded before doing anything. It's not a replacement for what you're already doing, it just loads all the graphics and the sounds if you have set the "Preload sounds" in the project properties.

    What you can do is wait for "On loader layout complete" to trigger and wait for the AJAX server side requests during the loader layout, while displaying a progression bar or something like that. Once all these things are done - you can here use variables for completion - you change to your next app layout.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • fm4fanAT

    I'm gonn try it now.

    Thank you very much !

  • Sorry for this question, but I can't figure out how to mention the name of someone in a discussion.

    There's no button I see so quote the name or reference someone.

    How do you do that ?

  • Hello,

    To use loader layout you have to select the first layout to display in the project settings, and set "Use loader layout" to "yes".

    Then, in the selected layout event sheet, you have to set the system condition "On loader layout complete" that is triggered when everything is loaded.

    If you have only few ressources to load, you won't see the difference because it loads relatively fast.

    For the project file I think you should use AJAX object to make request and wait for AJAX "On completed" event.

    Hope this helped. Nabu

  • Hello,

    I'm trying to draw a minimap with the Paster plugin but I have difficulties.

    First I populate an array with random values for the map, and fill a tilemap in the same way at the same time.

    Next I run through the same array and draw 1x1 quads with a color for each value.

    https://www.dropbox.com/s/nh1756hzw2rgnub/PasterMinimapTilemap.capx?dl=0

    The result is a minimap opposite of the real map. And some strange things I don't understand. I don't see any option to close path. Do I have to set the vertices of the quad ?

    R0J0hound

    What did I do wrong ? Something with the order I call Set Quad Color ?

    Edit : After testing, trying to run through a tilemap loop instead of array, trying to make two passes instead of one, I've seen unpredictable results. For example, if I disable the second color for the minimap, it works well. So it draws the quads at the right location, red 1x1 quad at black tile. But with the second condition, the results are wrong. If I set a first pass for the red quads at black tile, and a second for white quads at gold tiles, it makes some weird results. Really don't understand anything...

  • Hello,

    I noticed the HTML elements are moved when transition end. Here's a capx to illustrate.

    https://www.dropbox.com/s/iy4s1ipft81fwhx/LayoutTransition-HTLMElementsMove.capx?dl=0

    I already saw posts in this forum, that this plugin doesn't handle HTML elements but why does it move ?

    By the way, thanks for your work.

  • Hello,

    Thanks to you for the work done with your plugins. It's really helpful as I had troubles using Box2d and asm.js, with crash and can't fix it or neither understand. Some people have same problems of various threads in the forums, so your plugin is the only alternative.

    Many thanks !

    What is the difference between box2d linear damping and chipmunk one ?

  • Ho, thanks. I really miss something. I saw the different mass in the debugger but how to set the mass in editor ? Both objects are same, I didn't set the mass.

    Edit : Really sorry, I didn't search enough.

    "Mass

    The mass of the physics object, as calculated by the physics engine. This is the area of the object's collision mask multiplied by its density."

    From the manual : https://www.scirra.com/manual/98/physics