an0maly33's Forum Posts

  • 8 posts
  • I get that. The problem I had was the function was already called and spawning light sources every few seconds. I added a global var for the current layout and added that as a condition for the function event. That fixed it.

  • Unless there's some built-in magic feature I'm not familiar with, you'll have to figure out how to write object positions to a file or create a web service and post them to that. This is a pretty broad question, which is probably why you're not getting any bites.

  • Some of the effects require the layer properties to be set as I mentioned in the last post. Multiply is one of them. Achieving an effect like the one you're looking for is going to be tricky no matter what.

  • Be aware that if you try to place an object on that layout once you set the parallax, you'd be best off scrolling the view to the top-left of the layout first. Took me a while to figure out why my objects were disappearing as soon as I dropped them into the layout. =)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I would try doing something like putting a light source on its own layer, set the Background color to black, "Force own texture" to true and add a Multiply effect.

    Set the light source shadow color to white (have to do it in the event sheet, can't do it in the props pane.) Now your "shadows" will create a flashlight effect instead.

    That doesn't get you 100% of the way there, but maybe that will give you some things to fiddle with at least.

  • In my game, I have an intro cutscene of sorts on its own layout. It uses some of the new lighting/shading stuff that was recently added to C2. I added an event for keystroke/mouse click to skip to the layout for level 1 which also uses shadows. The light sources that would have spawned if the intro had continued still get spawned after the level 1 layout loads and they're casting shadows on my objects.

    Should I expect everything from the previous layout to be destroyed when I go to the new one, or do I need to add some logic to destroy objects and prevent the light sources from spawning if the intro was skipped?

    What I'm doing is calling a function that spawns light sources with "wait x seconds" between each one, and the total run time of that function is about 30 seconds. Is it just trying to finish that function or something or does it really not destroy any of the old layout objects/events when changing?

  • If not using a wrapper, what would you use?

  • I wondered about this too. I thought maybe I could use line of sight checks for on-screen objects and hide them, but I apparently don't know enough about the LoS behavior to make it work right. I can't get the event to trigger.

  • 8 posts