0 Favourites

How do I (chain laser things)

This forum is currently in read-only mode.
  • Hi, I am new to construct, I started using it 3 weeks ago and everything was perfect... until now <img src="smileys/smiley5.gif" border="0" align="middle">

    There is this little game mechanic I would like to implement, where a core is supplying energy to nodes and, like, in chains and.. well.. a picture is worth a thousand words so, here we go :

    Image

    here is the .cap file

    .cap

    Yeah I know, it's complicated..

    I've tried different solutions but this is my better result(for now), and suddenly I realize I have a lot to learn (and probably a lot more), so, any suggestion to make it work ? a path I should follow ?

  • If you want the laser looks continous, then you shouldnt spawn them over and over, create just one per "zonenode", and set it's height\width and angle.

    About the object picking. You should use families, if you do so, you can pick two instance in the same expression(so you can set the "start" and the "end" position of your laser.)

    If you only want one laser per instance, just pick the closest object.

    Hope it helped, if not, I can make an example later.

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • Thank you for your reply.

    Your laser solution works fine, no more bullet behavior, but it create infinite object on the same spot. I tried to play with variable and thing but the only "good" result I could get is with "trigger once while true". Now my first node connected to the core is good, with one object laser spawned, but all the other nodes connected spawn object again and again and again and .. Is there a simple solution to spawn one object at a time when the event who create it is continuous ? (2 objects overlapping)

    Here is the new .cap

    For the object picking.. well.. I understand the logic in your words but I'am (unfortunately) unable to transform it in tangible construct event. I should go read some more tutorial.

    And if you ask, yes (oh yes), an example would be greatly appreciated but I understand you have other thing to do.

    Thank anyway for your help man.

  • Ok so, I found a way to do it. I am not sure this is the simplest solution but at the end it seems to work.

    another new . cap

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