Khaz's Forum Posts

  • IIRC, touch is for phones, IMO: keyboard keys+touch wouldn't work very well unless it's for devices with slide out keyboards.

    What are you trying to achieve with touch? That'd probably be a good start on how you could be helped. :)

    edit: rex has an awesome touchmouse behavior that will help debug touch commands on the PC.

  • It does indeed. I just wished I knew how use this plug-in correctly so I could stay in one layout and achieve what I want in the end but I didn't want all the work done for me. Haha.

    Remain hits 0, then I could change the speed of the spawn and start the loop again kind of thing.

  • Thanks, I suppose that's a lot simpler solution. ><

  • Thanks :)

    I've been trying to use a flag but I just don't know Construct2 very well I suppose.

  • What I'm trying to achieve: I want the loop to run every X seconds until remain becomes 0.

    the loop is,

    choose a zombie type.

    spawn the zombie.

  • What would be the proper way to trigger 'toggle spawn using the timeline function?

    Putting onCondition:function outside of the loop doesn't affect the boolean instance variable of the loop :(

  • Would you mind taking a look at my .capx

    Appreciated. :)

  • I keep getting a 'trigger found as subevent to loop::not allowed' error

    mind pointing out what is wrong?

    <img src="http://i.imgur.com/FCbGb.png" border="0" />

    Thanks a lot for your help. :)

  • There is an OR plug in you could look into. :)

    Or perhaps you could force the range to result in 500 with a little math.

    I could also see a variable driven solution,

    random, if result > than X, variable = -20

    random, if result < than X, variable = 500

  • How could one implement a time based trigger?

    System --> wait makes the plug in break down.

    <

    Thanks!

  • edit: figured it out.

    duh!

  • bump.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Figured out my problem loop problem.

    Sorry for taking up forum space.

    Haha. ><

  • Thanks! Link digging brought me to TheLure's WalkTo demo which gave me a great concept of how to achieve what I want.

    I feel like a reaalll noob, should've checked that FAQ.

    Forgive me.

    :P

  • Is this possible in Construct2?

    I wanted to build some sort of unit control RTS mechanic.

    I.E

    Click or drag a box around a sprite/image, click somewhere, and have it go there.

    I was thinking I would need to utilize variable driven animation and Mouse.X, Mouse.Y.

    Perhaps something like,

    isSelected

    move angle towards mousex,mousey

    move ?

    but does anyone have an idea they could share with me to make this a lot better or easier?

    another idea I had was to implement some sort've grid or tile system.

    Using two variables, isSelected for the unit and tileSelected, that way it's less gimicky trying to force the position of where the mouse clicked, as I can't seem to find an event to assign a X/Y of where was clicked.

    any help on something grid like as well?

    Thanks. :)