dop2000's Recent Forum Activity

  • I didn't try it, but I believe Drawing Canvas is very similar to Paster addon for C2, where you can paste multiple sprites on to the canvas, or even the entire level.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • First of all, use "For each enemy" event under the "Every 1 second".

    You shouldn't check if enemy is overlapping enemy, because.. just because. Create a family EnemiesFamily with the Enemy sprite, and change your events to "Enemy is overlapping EnemiesFamily", this way you can refer to both instances in the event separately - overlaper and overlapee..

    Also, take a look at Rexrainbow's addons for grid-based games:

    construct.net/en/forum/extending-construct-2/addons-29/plugin-board-layout2board-beha-47187

    Moveto behavior to easily move enemies from one tile to another:

    construct.net/en/forum/extending-construct-2/addons-29/behavior-moveto-40701

    Pathfinding for grid:

    construct.net/en/forum/extending-construct-2/addons-29/behavior-easystar-js-pathfindi-96215

  • If you make sure that there is always the same symbol separating words (space may be the obvious choice), then you can use tokenat and tokencount expressions.

    variable currentWord=0
    
    Keyboard on Enter pressed:
     Text set text to trim(tokenat(fileData, currentWord, " "))
     Add 1 to currentWord
    

    You can also use tokenat() with newline separator to break text into paragraphs, and then break paragraphs into words.

  • SnipG We've actually discussed this with you here:

    github.com/Scirra/Construct-3-bugs/issues/1639

    I believe this bug is not really isolated to the TouchID, TouchIndex is affected as well. The problem is that sometimes "touch end" event is not triggered on certain devices, and that particular touch becomes "stuck" and is never cleared. As a result, any new touch will have TouchIndex>=1. You can add events to recognize these "stuck" touches and ignore them.

  • You can achieve something similar with a new "Drawing Canvas" plugin in C3 runtime.

  • Use instance variables. For example, add "isSelected" variable. When the first card is picked, set isSelected=true. When computer needs to select another card, search for a card that has the same animation name and isSelected=false.

  • SnipG Could you elaborate on this? I suppose TouchID can be re-used on some devices (therefore may not be unique). But it's very unlikely that any device will allow having multiple touches with the same TouchID active at the same time. So it still should be a good way to identify and track different touches.

  • What's the problem?

    Spawn one bullet, set its angle of motion to (character.angle-30), spawn another bullet, set angle of motion to (character.angle), spawn third bullet set angle of motion to (character.angle+30)

  • AllanR OP never explained what he needed. And if you look at his previous posts, you'll probably lose any interest in helping him.

    It's possible to add a couple of additional events into my version to prevent the situation you described - save TouchID of the finger which is touching the movement buttons, and if this ID is no longer touching the buttons, ignore it. Same with the touch controlling the beacon.

  • AllanR Yeah, sorry, must be Firefox - it doesn't like multi-touch. Your project works fine in Chrome. The same can actually be done much easier if you loop through all active touches, in just 6 events.

  • AllanR I don't think your version is working correctly. If you touched any of the ControlsFamily squares first, you can't rotate the ship with the second touch. If you started rotating the ship, you can't move it..

    I'm guessing this is how it's supposed to work (open in Chrome):

    doptrix.com/C2/ahmtd

  • Depends on what you want this movement to look like.

    If you just need constant speed, you can do this without any behaviors:

    On every tick 
    Character X<15 : Character move N*dt pixels
    

    You can use lerp (very fast start, slows down as it gets closer to position):

    Character set X to lerp(self.x, 15, dt)

    Or try the new Tween behavior in C3 runtime, with it you can make different cool effects - acceleration, deceleration, bounce, etc.

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 279 followers

Connect with dop2000

Trophy Case

  • 10-Year Club
  • Entrepreneur Sold something in the asset store
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Forum Unicorn Made 10,000 posts in the forums
  • x5
    Popular Game One of your games has over 1,000 players
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • x3
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x14
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

30/44
How to earn trophies