dop2000's Forum Posts

  • What does it mean - "how to change the movement commands so i can make the character move and rotate"?

    Are you using Platform behavior? Is this character controlled by the player, or is this an NPC/AI (controlled by computer)? Please explain exactly what you want to achieve and post an example of your events..

  • Oh, sorry, I was looking for a separate action, something like "Pin scale". It's working great, thank you!

  • Right click on the white area in animation editor, then choose "Import frames -> From strip"

  • Even better! So can you please add pin width/height? It will really help with tasks like creating modular characters.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Pinning values is easy to do in events

    Ashley Pinning itself can be done with events...

    To me pinning properties like mirror/flip and scale are just as important as pinning an angle. Yes, it's possible to do them with events, but it would make a lot of sense to have these features in the Pin behavior.

  • If you have a lot of objects on the screen, pasting them all onto a drawing canvas may be difficult. In this case take a snapshot of the entire screen, load it into a temporary sprite, paste a portion of this sprite onto the canvas.

    Also, please vote for the idea to add "paste layer" option to drawing canvas:

    construct3.ideas.aha.io/ideas/C3-I-921

  • If you don't necessarily need them to fade out over time, you can paste these sprites onto a Drawing Canvas and then delete the sprites. It will definitely be better for performance than having 2000+ fading sprites.

  • What behavior are you using? You need to provide more details, it's not clear what you want..

  • Assuming your array contains image names and text questions - pick a random array index, create a picture, delete this index.

    Local variable r
    
    Set r to int(random(array.width))
    Create picture, set animation to array.at(r,0)
    Create question, set text to array.at(r,1)
    Array delete index r
    
  • You do not have permission to view this post

  • In C3 you can do this with Drawing Canvas. Paste your image to multiple small Drawing Canvas objects, after that you can remove the image and re-shuffle the pieces.

  • No, when "On touch end" is triggered, the screen is still considered in touch. So you can still check for "Is touching object".

  • Most of your code is what's called "state machine". You have a bunch of variables and checking their states on every tick.

    I prefer keeping everything in triggers and functions, this code is shorter, cleared and much better for performance.

    Here is an example of state machine code:

    On collision with Enemy : Subtract 10 to health
    
    On collision with HealthPotion : Add 10 to health
    
    If health>100 : set health to 100
    
    If health<=0 : Set isDead=true
    
    If isDead=true : Player start animation "dead"
    
    and so on....
    

    There are too many events, most of them running on every tick.

    Here is how I would do it:

    You can call the function from other events, where the player gets hurt.

  • I have no idea why you need all this and why you have "ray-casting" in the subject. But the easiest way to check if a point is inside the object's hit box is to use "System Pick by overlapping point" event.

    So on touch end you can pick Button by overlapping (Touch.x, Touch.y) and that's it. You can also check if Button is overlapping (OldTouchX, OldTouchY).

    I believe "Is touching object" condition also uses object's collision polygon.

  • No, in the first event don't append to the text! Set charTyped value to lowercase(Keyboard.....)

    Add another sub-event below the "Shift is down" and there append charTyped to the text.