lionz's Recent Forum Activity

  • Right click on the overlap event and select 'Invert', this then becomes 'when not overlapping the sprite' i.e. when you are outside of the sprite area or track. This would be more for if the entire car has to be off the track though. You could also consider just having a sprite that borders the outside of the track and using an overlap event with this if it is to be that the car is slightly off track that triggers the lose event.

  • To SEE what are you are doing wrong we would have to see the events but I think I can guess this one anyway, you probably have the variables toggling on/off in the sub events so if 0 go to 1, if 1 go to 0. With C2's top down structure it will change the variable to 1 then back to 0, if that's how you've set the sub events up. So the variable is changing, just to 1 and back to 0 in the same tick. To fix it add an Else to the conditions.

  • Ah right, your events 3 and 4 need to be sub events inside the touch event, at the moment you have them outside.

  • Take out set animation frame to 1 in the second event. In the first event, on start of layout, set the animation frame to 0 (or set toggle_music to 0)

  • That looks reasonable, what's the problem?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It displays the value at 0 because that's the co-ords I gave in the example, nothing specific was asked for. If you want to display a random quote you would probably create a function, before which you set the review parameter to a random number and pass it through as array.at(param(0), 0). You can pass through another param for the name as array.at(param(1),1). You don't have to use a function, you can just set two variables to a random number and assign the co-ordinates to array.at(var1,0) and array.at(var2,1) but I prefer to use functions for things like this.

  • ReviewQuote set text to ""&array.at(0,0) would display "Blah blah blah"

    ReviewName set text to ""&array.at(0,1) would display "Mr Grumpy"

  • It does the for each X in one tick so the wait won't work, you can set it up differently to this with 'repeat'. Also why pass the array value through a global variable? You can just say if stateID = array.curvalue.

  • From looking at the tutorial I would say adjusting those variables would probably work, your error might be in the logic with the button that changes the variables, it might not be working correctly. Feel free to share a capx that you made from the tutorial though.

  • Which memory match tutorial?

  • I meant add the player is not jumping as a condition of the jump event, so left click will only jump and play the sound once until the player returns from jump.

    Set some kind of variable up and add it as a condition to the player controls, so if the variable is set to something then player controls don't work. Then set it to the expected value when you're on scoreboard to disable controls, change the value back when you are in the main game.

  • Add the condition 'player is not jumping' to the jump event.

    Give the scoreboard layout its own event sheet that doesn't include the player movement events.

    Replace 'is in touch' with 'on touch start'.

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