Realistic flashlight (from bird view)

0 favourites
  • 13 posts
From the Asset Store
In 2D realistic stones are included high quality realistic 18 stones/rocks.
  • How do i make realistic flashlight effect (not useless) for zombie shooting game? I trying to find it but i can't ;/.

  • The ghost shooter example bundled into C2 is a good example of this...

  • I don't want to have shadow like this. I saw many times games with cool flashlights.

    Something like this

    construct.net/en

  • Yes, his shadows looked really cool. Have you tried implementing them if you liked it ? He explains how to do it in the end.

  • But i don't know how to do it, i'm noob ;(

  • Like this one?

    (i know, it's not 100% "realistic", but very easy to create)

  • Cherico

    This looks nice, can you send me .capx or something?

  • Cherico

    your example is very good , can it also be implemented in a platformer game or not. If yes can you please help me.

  • How do i make realistic flashlight effect (not useless) for zombie shooting game? I trying to find it but i can't ;/.

    I have a simple way to do so (though I haven't tried it so it may not work as intended)

    Make a layer on top of everything and have a completely black image placed on it. Change the transparency to something you see fit. Then draw the flashlight beam on the same layer and set the blend mode to XOR. That should work and very simple.

  • Cherico

    Great example, thank you! Do you have a tutorial or .capx to share?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You won't learn if you avoid complicated stuff because you are a noob ?

    "

    You can't beat a hard game if you don't even start it up , unless you are a powerful wizard and in that case I want to be your pupil "

    • Whiteclaws 2013 , use it and I'll sue you

    Do you want Dynamic shadows , if so , you'll need to deal with math ...

    Otherwise , have a look at the many tutorials in the tutorials section !

  • Big big big big SORRY for late answer.

    (and sorry for my english)

    HERE is the .capx

    It's very simple:

    On Start every object spawns the shadow-sprite.

    Every tick the shadow-sprite's width and height will set to an special value (distance between mouseX,Y and shadow-sprite). Also will look into direction of mouxeX,Y (or wherever the light is).

    Thats all!

    But it's NOT REAL Light&Shadow, it's more faked, but can be useful ;)

  • Nijek, it will work, but you fill see behind walls and stuff.

    btw. Sorry for my long not replying

    Cherico

    Many thanks for .capx!

    edit. I think it will be little bit harder with walls :/

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