How do I make a fog effect?

0 favourites
  • 2 posts
From the Asset Store
A total of 214 high quality and unique magic sound effects suitable for RPG, Battle Arena and more!
  • Hello, I am relatively new to Contruct 2 and need help. I am making a top-down shooter game and want to make a fog effect. I put in a tiled background for the fog and put it on the top layer, then lowered the opacity. What I need to know now is how to make the fog move slowly to the right. I feel like without this effect, it doesn't feel like actual fog. Thanks in advance!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • First, the fog image must be continuous. His end is to amend the beginning to transmit an infinite continuity.

    The information below take into account that your game has the resolution of 800x600 and the fog image size is 800x600.

    On start of layout

    FOG - Set size to (LayoutWidth+1600, 600)

    FOG - Set position to (0,0)

    System Every tick - FOG - Set X to Fog.X-(dt*120) (or put a value that you think more apropriate)

    FOG X <= -800 - Set X to 0

    Good luck!

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