How to get a torchlight to reveal areas?

dilzy2dilzy2 Member Posts: 6
edited August 2013 in Working with GS (Mac)
Like when I hover over a certain area with my cursor I want it to show the area around where the mouse is but the rest of it to be complete darkness. Is there anyway I can do this?

Thanks :)

Comments

  • TheGabfatherTheGabfather Member Posts: 633
    edited August 2013
    Check out this YouTube tutorial by tshirtbooth.

    edit: wait, sorry. You were talking about using your mouse cursor?
  • dilzy2dilzy2 Member Posts: 6
    Check out this YouTube tutorial by tshirtbooth.

    edit: wait, sorry. You were talking about using your mouse cursor?
    Yeh sorry I should have made that clearer.

  • TheGabfatherTheGabfather Member Posts: 633
    No it's fine. Anyway, you can constrain the "Lighting" Actor's X and Y coordinate to that of the Mouse/Cursor.

    Something like,
    Constrain self.Position.X to game.Mouse.Position.X
    Constrain self.Position.Y to game.Mouse.Position.Y
  • dilzy2dilzy2 Member Posts: 6
    No it's fine. Anyway, you can constrain the "Lighting" Actor's X and Y coordinate to that of the Mouse/Cursor.

    Something like,
    Constrain self.Position.X to game.Mouse.Position.X
    Constrain self.Position.Y to game.Mouse.Position.Y
    Thanks for your help but the issue with doing that is that when I import the image as it is larger than my scene resoloution it goes white and doesnt show the image and if I was to make it the same as my scene res it would make the areas at the side of it appear. Any suggestions?

    Thanks alot for your help so far.
  • TheGabfatherTheGabfather Member Posts: 633
    edited August 2013
    What type of game is it?

    Hold on, I know once an Actor reaches a certain distance outside your Scene boundaries it should automatically be Destroyed (but don't quote me on that), but having an Actor be, say 150% larger than your Screen size (not Scene size) in width and in length should be fine (I just tried it).

    But then again you said it turns white, not gets Destroyed.. soo I'm thinking you're experiencing a possible bug. Are you using Windows Creator by any chance?
  • dilzy2dilzy2 Member Posts: 6
    What type of game is it?

    Hold on, I know once an Actor reaches a certain distance outside your Scene boundaries it should automatically be Destroyed (but don't quote me on that), but having an Actor be, say 150% larger than your Screen size (not Scene size) in width and in length should be fine (I just tried it).

    But then again you said it turns white, not gets Destroyed.. soo I'm thinking you're experiencing a possible bug. Are you using Windows Creator by any chance?
    Yes I am using windows creator, would there be any kind of work around?
  • TheGabfatherTheGabfather Member Posts: 633
    Delete the old image file from within Creator, then reimport it using a completely different filename. Then plug that in back to your Actor, and see how it goes.
  • dilzy2dilzy2 Member Posts: 6
    Delete the old image file from within Creator, then reimport it using a completely different filename. Then plug that in back to your Actor, and see how it goes.
    Yey, that worked thanks alot :)
Sign In or Register to comment.