lionz's Recent Forum Activity

  • Oh I see what you want it to do now, I was using family instance variables. Yeah you don't need a for each, just if family is overlapping switch and switch ID matches block ID then set to true.

  • it's the Else you're using wrong, it should all be in one event. Have the ForEach at the top of the event, then in 2 subevents (press S) have the first section and the else section.

    https://www.dropbox.com/s/i10yoc3d3u0mp ... .capx?dl=0

  • The picking is a bit off there. The logic you need will be :

    For each objects

    Objects is overlapping TriggerSprite

    Objects.ID = TriggerSprite.ID

    Set bool true

    Else

    Set bool false

    Obviously the family and trigger sprite are interchangeable depending on if you really have to check against the trigger sprite's variable and not the family.

  • No problem.

  • You haven't picked any nodes so it will always go to the one node, usually the one with lowest UID or that was created first. To pick a random one in this case it would be something like Movement = 1 - Pick random instance of WalkNode - Find path to WalkNode.X, WalkNode.Y.

    Also I don't know what you want exactly in your game but based on that logic your Sprite is going to be getting told to path to new nodes on the way to other nodes. You might want to try using On Arrived with your logic if you want them to move to a node first before finding a new one.

  • Assuming the game score is a global variable you can just show it in a text object set text "&Score" where Score is the variable name.

  • Not 1 second breaks, every tick. Set a global variable on RandGen to 0. Add an event every tick add 1 to global variable. Replace all of the tickcount checks with global variable.

  • It's because the randomgen relies on tickcount, which is the number of ticks since the game started. It's only going to work in its current state if its the first thing to load in the game. You'll need to change the tickcount checks under randomgen and add in your own counter I guess.

  • Adjust the collision box so that it only covers half of the rectangle.

  • Every 0.02 seconds set sprite.y to sprite.y+1

  • Are you saying you've already worked out the high score and you want to display the score at location 0,1?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can get latest from here: https://www.scirra.com/construct2/releases

    File > About in the software, you can see what version you currently have installed.

lionz's avatar

lionz

Member since 5 Aug, 2013

Twitter
lionz has 72 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