GenkiGenga's Recent Forum Activity

  • That does look funny doesn't it. I am interested to see your code because I cant imagine why it would be doing that, unless your image points are off for the jump animation.

    A good thing to do whenever you run into a problem like this is to isolate it from your project. Start fresh with nothing but the code needed to display the problem. If it still occurs in that project post it and I will help you.

    A lot of the time though in doing so you find it yourself and is much easier than debugging your whole wip.

  • No worries,

    Ok to break it down further, you see that there are 2 layers in the example. If you click in the layers tab and then on layer 1 you see in the left hand side that the background colour is set to black, whereas layer 0 is set to white.

    Now click on the light source object, there are a bunch of different effects that you can add to objects, this one uses 'destination out' which creates that effect of looking like a flash light (because it is on the layer that has a black background).

    If that light object was green instead of white then the light would look green too.

    Most important thing to take from that example is that you need to do all your lighting as the top layer.

  • Just the one that says 'Lighting', its a simple example with 2 light sources.

    I have not actually played Terraria but from what I saw it seemed like there were just a bunch of little light sources.

    The example works on a pure black background but if you set the opacity to 50 percent then you can start to see how it would work.

    If you had a black box covering the screen, you could also simulate simple day/night by changing the opacity from 0 (day) to 60ish for night.

    Keep in mind these are just simple suggestions though.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey Rookie,

    First step is opening up the lighting example built in with C2, once you understand the principle of that it should set you on your way.

  • If you don't want to use pin, (and are familiar with setting objects to imagepoints) use on Whipping = true -> Set object to image point.

    Now you need to go into all of your animations and set the origin for that specific image point. It should stay with you regardless of movement.

  • Guys,

    On Start of layout, Browser -> request full screen worked the last time I checked node webkit and I was fairly impressed with it.

  • We got there in the end :)

    No need for the mention Rookie, glad to have helped.

  • Its a pleasure,

    I think you will like this, same link as before.

    I have adjusted the numbers so that you still have some Y scrolling but not enough that you lose view of any set of mountains.

    One thing to keep in mind with this is its based off how high your stage is, so if you doubled the height of the stage you would have to again adjust the Y values accordingly.

  • That's ok, I have been there.

    Try the link again. Im not sure this is what you want but I have just reset the parallax for the Y axis on one of the mountains to 0 (and positioned it in the editor to always be at the bottom of the window).

    Am I getting close?

  • Hmm I cant picture the style that you are wanting to achieve, maybe if you drew a picture it would help.

    But, lets say you wanted the far set of mountains to have the normal X parallax but you want to control when it moves up or down (so its not actually parallax for the Y), you would then have to manually move it up or down.

    Simplest way to do this is add bullet behaviour and control the speed and angle of motion.

  • Haha, no worries and I'm sure you will mate!

    Agreed, C2 combined with this community is awesome. :)

  • Blacksmith, Cheers I should have mentioned that.

    Here you go Rookie I have updated the original example. Now when you fall from the sky you can see the verticle parallax working too (you will no doubt want to adjust this to your liking but its a good starting point).

    db.tt/zWVXCDN6

    Things start to get a little bit hectic in the editor (depending on how zoomed in you are it will look different) so the best way to adjust is to play the game and move it up or down bit by bit until it feels right.

GenkiGenga's avatar

GenkiGenga

Member since 20 Oct, 2011

Twitter
GenkiGenga has 5 followers

Trophy Case

  • 13-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • x2
    Popular Game One of your games has over 1,000 players
  • Coach One of your tutorials has over 1,000 readers
  • RTFM Read the fabulous manual
  • Email Verified

Progress

20/44
How to earn trophies