lionz's Forum Posts

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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?

  • 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.

  • Contains value

    Searches the entire array to check if any of the elements contains the given value. For example, you can use this to test if the string "sword" is stored anywhere in the array.

  • Hi hi. I'm not sure what you are trying to do but the Y value is always where the origin image point is, unless you add more image points and you can work out the Y of them. The size in the properties bar shows the height of the sprite. Maybe you want something more detailed so please explain further.

  • Because you have logic in event 7 on leaderboards where you add a name to the array, which is fine when you go to leaderboards at the end of a level but if you go to leaderboards from the main menu it tries to add a new name with the same logic.

  • What specifically do you need help with?

  • In terms of what? You would have to make some graphics. You can unlock levels based on global variables.

  • May need some tweaking but something like this should work. You limit where the Sprite can be dragged to.

    https://dl.dropboxusercontent.com/u/495 ... drag2.capx

  • It's possible to limit the Y of the player when you overlap the yellow blocks. How come you drag a large sprite in this game and not the player, is this to simulate dragging up and down on mobile or something? Feels weird with a mouse but maybe it works better on mobile..