lionz's Recent Forum Activity

  • You can do this in one event.

    Have an instance variable or boolean i.e. isUsed on the plate.

    Have 2 variables on the burger which is its current position (for cancelling). curPosX and curPosY.

    Then the event is Burger on drop, if overlapping plate and plate.isUsed is set to false, set burger position to plate and set plate.isUsed to true, Else set burger position to burger.curPosX, burger.curPosY (its position before it was picked up).

  • Hmm well there's the second way I mentioned where you collide with the outside of the track. You could also possibly do something like set image points on each corner of the vehicle and say if any one of these is not overlapping the sprite then the vehicle is outside of the track.

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

  • Try Construct 3

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

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

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

lionz's avatar

lionz

Member since 5 Aug, 2013

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