RioLuk's Forum Posts

  • I asked the same question years ago. Sry for that. The solution is here.

    It works by overlapping but not by collusion. Why?

  • Hi basically I have the same question like maxrpg in this Topic.

    Only that it doesn't work for me. And the difference maybe, that I have an Enemy-Family

    So if there are 2 enemies overlapping each other the Bullet Sprite will subtract HP from both of the Enemies on collusion instead of only on. For example the one on top.

  • choose is a system expression. You have to type it.

  • Try Construct 3

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

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

    dop2000

    The user tarek2 helped me out with this one. He wrote:

    Use Overlap for that much better
    
    -sprBullet : Overlaps sprEnemy
    -sprEnemy: pick top instance
    -Trigger once while True
    Action :sprEnemy: destroy
    
    The 3 conditions in the same Event [/code:38wux4to]
    
    It worked perfectly. Still thank you both for replying
  • tarek2

    Ah great! I tried it how you explained and it works perfectly now! Thank you very much

  • Hi, I was trying out the "pick top/bottom" action but something went wrong. So I have 4 or 5 same sprites overlapping each other. And when the Bullet collides with a sprite, the sprite will be destroyed. However if the sprites overlap each other all 4 or 5 sprites get destroyed instead of one. Therefore I tryed to pick the top sprite and destroy only that, but something is not working.

    -> sprEnemy: on collusion with sprBullet

    --> sprEnemy: pick top instance -> sprEnemy: destroy

    This is how my event looks like.

  • Hi, I was trying out the pick top/bottom" action but something went wrong. So I have 4 or 5 same sprites overlapping each other. And when the Bullet collides with a sprite, the sprite will be destroyed. However if the sprites overlap each other all 4 or 5 sprites get destroyed instead of one. Therefore I tryed to pick the top sprite and destroy only that, but something is not working.

    -> sprEnemy: on collusion with sprBullet

    --> sprEnemy: pick top instance -> sprEnemy: destroy

    This is how my event looks like.

  • So it must be like this...

    showing tenth of a sec

    -zeropad(int(time/60% 60), 1) & ":" & zeropad(int(time%60), 2)& ":" & zeropad(int((time*10)%10), 1)

    showing hundredth of a sec

    -zeropad(int(time/60% 60), 1) & ":" & zeropad(int(time%60), 2)& ":" & zeropad(int((time*100)%100), 2)

    showing thousandth of a sec (millisec)

    -zeropad(int(time/60% 60), 1) & ":" & zeropad(int(time%60), 2)& ":" & zeropad(int((time*1000)%1000), 3)

    ...is this correct?

  • Here are two screenshots, I'm working on a shootemup asteroids clone.

    You can play the game at it's current state here. BEAT THE HIGHSCORE

  • can I somehow save this post under favorites to find it later?

  • Hi,

    if you have troubles with the black screen check if you saved your whole project (preferably in an new folder) before exporting. Under -> File -> Save As Project. Then open the new saved project-file and export it for scirra arcade. That worked for me at least.

    cheers

  • Looks cool. Do you have a video of the game somewhere? Keep it up

  • I'm currently working on an Asteroids clone. Some graphics are still placeholders, even though I'm curious what you think about it.

    Let me know.

    watch the clip - press here

    cheers

  • Since the image is no longer online here is the calculation which was shown in the picture:

    round(N * 100) / 100

    for 2 decimal places, or 1000 for 3 decimal places,...

  • Thank you!