lionz's Recent Forum Activity

  • It's still there for me - system : for each(ordered)

  • That looks fine, although not sure why the short wait is required before setting the variable to 1? You could also use a timer instead of a wait.

  • Else is fine if you have only two outcomes. 'wait 0 seconds' is used if you have more complex logic. You can't use else if you have three possible outcomes because you will find yourself with the original problem.

  • You just need to 'wait for the next tick' because both action in the same tick. So before the set cameramode to X actions, you add 'system wait 0 seconds'.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Sounds like you have the right idea. I wouldn't say there was a tutorial for this except where the manual guides you through making a simple array. The best way would be to give each player an ID as mentioned and that ID relates to the row in the array, so player 1 is always x = 1 which is array.at(1,?) and then the Y is the values you mentioned. Because you know there are limited number of players you can setup the rows beforehand. You could even add data dynamically while they are choosing a class for example, if they are assigned player 1, as they select class the array.at(1,1) would update to reflect their class but that might not be entirely necessary. Then once you are in the level you use a for loop to run through each row and create each piece in turn with one event so create object name array.at(loopindex,0), class array.at(loopindex,1) and colour array.at(loopindex,2), that works for all players.

  • I don't see any logic that triggers on collision. Anyway your brain conditions run constantly, you need to make it a trigger once choice on collision.

  • Make the cell border larger, and verify that the collision box of the obstacles is the size of the object and not smaller.

  • Such as? When you collide you can pick out the two instances using what I mentioned and then whenever you reference the object it is referring to the one picked.

  • Great, glad it's resolved.

  • You are adding it to a loop but the wrong loop, you need to create a new one as a sub event at the point in time where you need to convert all numbers to int.

  • Hmm again the actions are not added into the loop I mentioned. You should create a new for loop, for from 0 to array.width and add those actions.

  • In a collision or overlap event you can make use of system Pick nth instance, where instance 0 and instance 1 are the two involved in the event.

lionz's avatar

lionz

Member since 5 Aug, 2013

Twitter
lionz has 73 followers

Trophy Case

  • 11-Year Club
  • 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
  • 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
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

24/44
How to earn trophies