Vitae's Forum Posts

  • Had no idea how to describe this in just one box of text (the subject box).

    My problem is that I want to create an object every time the player presses a button. Maximum amount of objects is 3. When the player presses the button to create a new object and there is already 3 spawned I want to spawn a new object but destroy the oldest object (the one that was spawned first). If I had LUA I could do this myself but I have no idea how to do it in Construct 2. :P

  • Been trying to figure this out but to no luck. :(

  • Bump. :)

  • I think you might have to test for every orc then.

    For each orc

    Orc is overlapping bullet

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • have you tried adding instance variables to your enemies ad then decreasing that value?

  • I'm having some issues when boxes are stacked.

    You wont be able to drag a box if another box is on top of it and sometimes dragging a stacked box will make it just pop down to ground level.

    Any idea on how to fix these issues? :/

  • Yea. I can see now what was going wrong.

    That's the way I suspected I would have to do it.

    Is there no way to break out of an event? instead of using temporary variables like this? :/

  • On shift pressed

    For each Object

       Object is overlapping Object2

          If Object variable = "Follow"

            Set Object variable = "Stay"

          If Object variable = "Stay"

            Set Object variable = "Follow"

    Why is this not working for me? It seems to set the varaible to "Follow" regardless of the previous value. :/

  • Thank you zeph. Much appreciated.

    It's something I started toying with on my way home from work.

    I will see if I can get something interesting going as a proof of concept. As you can tell from my tiles my artist side of me isn't very strong. :)

  • So I'm trying to get some objects to follow the player around.

    The easiest way I've found so far is to make the objects platformer behaviour (which has a lot of drawbacks). I've got one object working but when I copy paste it they will not run as seperate objects but rather as two twin objects (one stops moving the other does as well).

    http://dl.dropbox.com/u/65431535/chasing.capx

    I want them to act seperately from each other. :/

  • That worked wonders. Thanks for sharing. :)

  • I think the way yann is describing it is the way I'd like to use it. just not exactly sure how to implement it at this stage. I sort of understand how to do it and will have fiddle around with it a bit later but I suspect my way of doing it wouldn't work so that's why I'm asking if he could share the capx with the rest of the community. :)

  • Been trying to get this behaviour working as well. Any chance I could get to take a look at the capx?

  • Not sure if I've set this up correctly. The player goes in to the shooting animation but slides around as if always playing frame 1 of the shooting animation.

    <img src="http://i43.tinypic.com/x5bkue.png" border="0" />

  • I must be daft. Can't seem to find how to make a local variable. I know the global variables and have used them quite a lot.