dop2000's Recent Forum Activity

  • You need to change HasMoved variable to 1 for the selected player in each turn. This will prevent it from being selected in the next turn.

    And after all players have moved and a new round begins - reset HasMoved to 0 for all players.

  • Same way - set Blue variable to Blue.pickedCount

    .

    If you have multiple placeholders and want to count their blue neighbors, then yes, you need to do this in For Each loop.

  • You can pick by distance:

    System Pick Blue By Evaluate distance(Placeholder.x, Placeholder.y, Blue.x, Blue.y)<20
    	Set blueVar to Blue.pickedCount
    

    Or add Line Of Sight behavior to the Placeholder, and pick tiles in its sight.

  • I don't understand what you mean. You add an event with the two conditions I posted above, this event will pick the player with the highest speed value, who hasn't moved yet. Then you can start the turn for this player - select its attack, spell etc.

  • i dont understand how loops work. I also dont understand what u meant by set turn order to loopindex.

    You absolutely need to study loops, arrays, dictionaries, functions, families and other basic concepts in C3 before starting a big project like this. It may take you a couple of days or event weeks, but will save you months of fruitless efforts in the future!

    In this case you can determine turn order even without loops. I assume you have 10 different sprites for players? You have to add them all into a family and define all instance variables on the family. You'll need "Speed" and "HasMoved" instance variables. On start of each turn pick players that haven't moved yet, and then pick the player with the highest speed among them.

    PlayersFamily HasMoved=0
    PlayersFamily Pick with highest Speed 
    

    That's it! You saved yourself 12999 events!

  • No problem! By the way, you can make the rotation smoother with this expression:

    Set angle to anglelerp(self.angle, Gamepad.Axis(0,0), dt*10)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • In Gamepad properties (on the left panel) check Analog Deadzone setting.

  • Possible, but not with particles. Add a sprite with Bullet behavior.

    Repeat 360 times 
    	Create Sprite
    	Set sprite angle to loopindex
    
  • I don't have a wheel, but I imagine only one axis should be changing as you rotate it.

    Try setting the angle simply to Gamepad.Axis(0,0) or Gamepad.Axis(0,1)

  • So you rotate the TankTower first, and then spawn particles? In this case you don't need pin.

    Try setting partciles angle to (loopindex=1?-90:90)+TankTower.angle

  • Hi Tom

    Seems like redirection from scirra.com is broken. Old links from these posts are no longer working. Could you check please?

  • Why are you posting in C3 forum if you are using C2?

    There is Canvas addon for C2 which you can try.

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