dop2000's Forum Posts

  • Can you post a picture or a video of how it's supposed to work?

  • Attach two invisible round sprites to the ring with joints.

    Disable physics collisions between the ring and the stick. Enable collisions between the yellow sprites and the stick.

  • i don't have the source code i got the html5 source from another app ,

    Then it's not possible to help you.

    Contact the author of the game and ask them to fix the code.

  • DarkViGaCi You don't really need "trigger once" in your case.

    But your code is fine. Most bugs happen when people use this condition with objects that have multiple instances. Like "Enemy HP=0, Trigger once"

  • Functions that return a value can't be called directly, only from an expression:

    Set myVar to Functions.FactorCalculations(param)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Another option is to fill each area with a unique color, paste the map on a drawing canvas, and then use expressions like DrawingCanvas.SnapshotRedAt(x,y) to detect the color of clicked pixel. The canvas object itself can be invisible.

  • Have you tried changing "Stepping mode"?

  • Run "select" layout, press Reset to clear storage.

  • It definitely works. I can't help you if you can't even run and test my project.

  • When you do "Obj on collision with Obj", it picks two instances. And you need to do additional picking if you need to get the type of each of them - use "System pick Nth instance" or "System For Each".

    You can create two families with the same sprites to make things easier. Then you could refer to each instance without having to pick them one by one. For example:

    Fruits1 On Collision with Fruits2
    
     Fruits1.animationName="Blueberry" & Fruits2.animationName="Blueberry"
     -> Create Cherry
    
     Fruits1.animationName="Blueberry" & Fruits2.animationName="Raspberry"
     OR Fruits1.animationName="Raspberry" & Fruits2.animationName="Blueberry"
     -> Create Pineaple
    

    If there are a lot of fruit combinations, this approach is not ideal because you'll have to create a lot of events. If this is the case, I would suggest using an array or JSON to store all these recipes. And perhaps a function which will look up a pair of names in the array and return the name of the merged object.

  • Try disabling Follow behavior. Even when Follow is stopped, it's still active and prevents object movement.

  • I also suggest checking the browser console log - both in the editor and in preview. If there are any problems with the project (like a corrupted file), there should be an error message in the console.