procrastinator's Recent Forum Activity

  • You could just do it like Shinobi 2 instead of animated sprites.. depends on your needs.

  • The text object will show "Text" by default and at 36pt, it might just show it fine. But when you set it to show the distance, that could be 100.45 or something which will wrap the text, therefore you won't see it. Just resize the text object on the layout.

  • You need to use collision boxes. Like if scorpion is punching, you'd create a small box where his hand is for the punching frame. You do this by creating an imagepoint in the image editor on the frame where he punches. Then in your events, if frame = THAT FRAME, then create a collision box. Then you'd check that collision box to see if it overlaps.

    There's much more to it than what I've described though. How do you cancel out the opponent's strike if you both hit at the same time? What about frame skipping.. that one frame for the collision box may not be enough, so you'll either need to create it for a few frames, or add a small delay for that frame (in the image editor, you can set delay times for each frame).. and so on..

  • You'll also need to set the width to distance(x1,y1,x2,y2)

  • I honestly can't think what you'd be doing wrong for the bullets to slide after being pinned to an object.. hard to say without a capx or some code snippets really.

  • Add a bullet behaviour to both but disable by default.

    Then on collision..

    local anglePlayerEnemy

    anglePlayerEnemy = angle( Player.X, Player.Y, Enemy.X, Enemy.Y )

    Player 8direction disable

    Player bullet set angle of motion to anglePlayerEnemy + 180

    Player bullet enable

    Enemy 8direction disable

    Enemy bullet set angle of motion to anglePlayerEnemy

    Enemy bullet enable

    Wait 0.5

    Player bullet disable

    Player 8direction enable

    Enemy bullet disable

    Enemy 8direction enable

    Set the bullet speed to something like 30.. you'll need to tweak this and the wait 0.5s to get the result you're after.

  • 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

  • You do not have permission to view this post

  • haha yeah well.. only sometimes.. ;p

  • Looks pretty cool. I can tell you're having fun making it!

  • Create a global text variable.. StopAllSounds = "no"

    Then when you STOP ALL sounds.. set StopAllSounds = "yes"

    Then you can use that with every x seconds like..

    +Every x seconds

    +StopAllSounds = "no"

    • play your sounds..
procrastinator's avatar

procrastinator

Member since 29 Dec, 2008

None one is following procrastinator yet!

Connect with procrastinator

Trophy Case

  • 15-Year Club
  • Email Verified

Progress

16/44
How to earn trophies