dpmontes's Recent Forum Activity

  • .capx

  • We want to help but you're not giving us much to work with. Posting your "game" where you have guys marching across the screen like lemmings doesn't do us much good to understand what the issue is. Unless you reveal your exact code or post a .capx, we really can't do much except make vague suggestions on what you can do.

  • 1. Right click on "Keyboard Right arrow is down".

    2. Select "add"

    3. Select "add another condition (C)"

    4. Add another keyboard event for pressing "Down".

    So now the event is made so that if both down and right is being pressed, the cow will move to the right. You could also have gotten to this point by clicking and dragging the "Keyboard Down arrow is down" that you had already made and merging it with the "Keyboard Right arrow is down".

    5. Right click on the new conjoined event you just made and click the "Make 'Or' Block"

    6. Thank me.

    Also, you don't need two separate animations to make a object look like it's moving left or right. Use the "Mirrored" property to flip it around.

  • post .capx

  • My first thoughts on how I would go about this is to have each good guy and bad guy have an instance variable called "turnMeter" which would have a value between 0 and 10. Each would also have an instance variable called "meterRate" which would typically be a value between 0.1 and 3. So when a player has a low level, their meterRate would be low like 0.1 so it would take awhile for their turnMeter to get filled up to 10. As they progress in level, their meterRate increases. If they have a "FastSpell" cast on them, I would multiply the meterRate by 1.5 to give them a 50% boost in speed temporarily.

    So before each round starts, you'll determine the order of play by which units can fill up their turnMeter the quickest. If they are dead, their meterRate is 0.

  • I still don't understand what you are asking.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • dl.dropboxusercontent.com/u/123756210/editthisFixed.capx

    1. You only need one walk animation. Use the "mirrored" option to make him face different directions

    2. You need an extra frame in your walk animation so it doesn't look like he's doing a stutter step

    3. You had your "keyboard pressing left" conditions flipped so it was bad logic but I ended up rewriting it the way I like to write it anyways.

  • "how to make that automatically fought two units."

    What in blue blazes is that supposed to mean!

  • The error is probably in the execution of your intent. Post a .capx so we can see your actual code instead of that pseudo.

  • First off, at line "8" you don't need the "every tick" condition in conjunction with the "Is mouse cursor over block2". It will already do that test every tick. It appears that the mouse is able to detect a gap in between the blocks even though it appears that there shouldn't be a gap. If the blocks are made just a little bigger, they overlap and you don't see the momentary "not over".

  • 1. When a layout restarts, set a variable "layoutTime" equal to the time

    2. If you wanna know how long since the layout restarted, take the time - layoutTime

dpmontes's avatar

dpmontes

Member since 21 Sep, 2012

None one is following dpmontes yet!

Trophy Case

  • 12-Year Club

Progress

12/44
How to earn trophies