How do I made random spawn picture for prank game

0 favourites
  • 6 posts
From the Asset Store
An educational game for counting pictures. An easy to use template for developers to build larger games
  • Hi

    im new in this field, and I am planning to create a puzzle game with prank theme, where suddenly a scary image filled the screen randomly for a few seconds then disappeared back into the main game, which I wanted to ask how to create the correct event to display the scary image suddenly, a few seconds on the screen, then disappear.

    Thank you very much

  • You can make this image invisible, add Timer behavior. On start of the layout set Timer to random(10,30) for example.

    On Timer event set image visible, wait 2 seconds, set invisible or destroy.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can make this image invisible, add Timer behavior. On start of the layout set Timer to random(10,30) for example.

    On Timer event set image visible, wait 2 seconds, set invisible or destroy.

    ok i'll try it thanks a lot

  • You can make this image invisible, add Timer behavior. On start of the layout set Timer to random(10,30) for example.

    On Timer event set image visible, wait 2 seconds, set invisible or destroy.

    i've try it and unfortunately it not work, i think it is because my knowledge still shallow on this logic ,

    i'll very appreciated if anybody can give me step by step tutorial, or maybe some links related to it.

    thanks a lot

  • https://www.scirra.com/manual/167/timer

    System: On start of layout -> ScarySprite Start Timer "Suprise" for random(10,30) seconds
    
    ScarySprite: On Timer "Surprise" -> ScarySprite set Visible
                                     System: Wait 2 seconds
                                     ScarySprite set Invisible
    
    [/code:1kbxa9rr]
  • scirra.com/manual/167/timer

    > System: On start of layout -> ScarySprite Start Timer "Suprise" for random(10,30) seconds
    
    ScarySprite: On Timer "Surprise" -> ScarySprite set Visible
                                     System: Wait 2 seconds
                                     ScarySprite set Invisible
    
    [/code:3bm3rbgq]
    

    THANKS IT WORK, you're my hero

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)