Lights missing alot of functionality

This forum is currently in read-only mode.
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • Hey, i'm something of a new user and was putting Construct through its paces when I figured out that there is no way to identify a particular instance of a light.

    What I am trying to do: I am making something of an artillery tech demo and am trying to assign a light to each shell.

    The issue: There is no way I can tie a light to a shell - While you can edit and name private vars for a light, you cannot set, add, or subtract from them unless you use the debugger, and they seem to have no Unique ID (A call thats supposed to return this always returns 0).

    Is this simply missing or what? I cant seem to find any workarounds either as it seems that there is nothing unique or identifying presented to me in the event editor.

    -Cameron Mercer

    (PS: First post!)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'd suggest reading the wiki article on Containers.

    To give a basic idea on what containers do, if you put the light in a container with the bullet, every bullet will have a light object paired with it. I'd explain more, but the wiki article will be able to be a better job of it.

    Good luck.

  • I'd suggest reading the wiki article on Containers.

    To give a basic idea on what containers do, if you put the light in a container with the bullet, every bullet will have a light object paired with it. I'd explain more, but the wiki article will be able to be a better job of it.

    Good luck.

    Yes! That is exactly what I am trying to do! I dont think it could get any simpler, you rule sir.

    You, and this program! Containers are one of those awesome ideas that makes you wonder why every program doesn't have them (I am coming from a TGF 2/Game Maker background). This just cut my code by ~65%.

    I am completely ecstatic, even though I still think that lights should be able to have values set to them (I mean, the functions are already there, its kinda misleading).

    Thanks again sir.

    -Cameron

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