dop2000's Forum Posts

  • May I ask why do you use Mouse.AbsoluteX and not Mouse.X or Mouse.X(layer) ?

  • Here you go:

  • It's possible to determine moving angle - add two variables to store object previous position. On every tick calculate moving angle = angle(prevX, prevY, Sprite.x, Sprite.y), and then set prevX to Sprite.x, set prevY to Sprite.y

  • You can do something like this:

    Play animation "Walk_"&Costume

    Play animation "Idle_"&Costume

    Of course, you should name the animations properly for this to work.

  • C3 does support multitouch. You can add "On touch 1 start" event, it will trigger when the second finger touched the screen. But if you need to detect a short two-finger tap, it will require more work.

  • You need to move all "Add child" actions from event 8 into event 7.

    So first you create a parent object, and then immediately add children, in the same event. Note, that if children objects don't exist, you need to create them too, before adding to the parent.

    Alternatively, you can create hierarchy connections in the layout editor, and then then spawn the parent object with "create hierarchy=yes" setting.

  • Here is a small project demonstrating the issue:

    dropbox.com/s/mkt4ldmpsn0quks/RandomDemo.capx

  • Using round() with random is not a good idea. The results distribution will not be uniform.

    If you need an integer number between 5 and 10, use int(random(5,11))

  • I don't know if it's possible.

    You can move the object directly with timeline, and it will follow the Bezier path. No need to use MoveTo behavior.

    • Post link icon

    It's probably a Platform behavior issue. If you are sure that two collisions are registered, you can temporarily disable collisions for batBox after jumping on it:

    batBox set collisions disabled
    Wait 0.1
    batBox set collisions enabled
    

    Or create an instance variable lastCollision. On collision add a condition checking that batBox.lastCollision<(time-0.1)

    And only if it's true, then do the jump and set it lastCollision to time.

  • I think you have a mistake in two conditions where you compare Tpin.X

    I believe it should be:

    Tpin.X < (Tarea.x-20)

    Tpin.X > (Tarea.x+20)

    Also, how do you limit the dragging distance of Tpin sprite? I have a few examples of virtual joystick, take a look:

    howtoconstructdemos.com/category/virtual-joystick

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You do not have permission to view this post

  • Check if the layer is visible, or maybe has some blend mode that makes it invisible. Check parallax, scale rate. Run the game in Debug Mode, see what really happens with these objects - maybe they are nor destroyed, but still there.

  • You need to add "Else" as a first condition to the second sub-event. Press X to add it.

  • It's because you have "Slash Spawn Slash".

    You need to change it to "System Create Slash" action, or "Player spawn Slash" and then you could remove "Set position" line.