lionz's Recent Forum Activity

  • You still have the down key button press separate at the top so the same bug will happen. It sets it to 2 and then the event below runs where it says menu select = 2. You should have them all in one event as I previously mentioned.

    Also on the enter key press events you don't need those extra conditions for variable is not equal to something, that won't be causing any bugs though they are just redundant.

  • Does that relate to some other events you're not showing us? Not sure what you mean by that. It 'thinks' that option 2 is option 3 sounds like you are pressing a key or choosing an option which isn't shown here.

  • You mean you want to pick all the objects again inside the same event? You can use system pick all which opens them all up again to be picked.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Add an 'Else' to the second condition. It's not working because in Construct it sets the value to 1 then runs the second condition because it is now true and set to 1.

  • It is because the events are true as you run the events from top to bottom like Construct does. It becomes 2 which makes the event for if=2 true and then changes it to 3. Using the on down key pressed condition make it one event only, indent with sub event (S) and use Else, so if variable = 2 Else if variable = 3. That should fix it.

  • help us to help you by adding more info, this doesn't make too much sense on its own.

  • Cannot reproduce that on the file sent

  • So what are you trying to do in the textboxes?

  • Maybe I explained myself badly, I don't want the first 2 rows of the array, fortunately I know how to show them :D

    I would like that by typing the letter P the first text finds me Pear and the second Potatoes.

    instead now when I type P it finds me only potato, while in the list it finds Pear

    Find? Meaning what? Yes it's badly explained.

  • This is why I rarely share files because you end up with a bunch of events you don't really understand, for me that's not the way to learn Construct. It is not reversing any order you just put the action in a loop so it will run until the last element is found. If you want to show elements 0 and 1 from the array then do as I mentioned above outside of any loop or function.

  • You shouldn't set those text inputs inside the loop or inside the function. To be honest it's not clear what they are for. If they are there to show the first and second value of the array then its array.at(0) and array.at(1).

  • There are a few other options, if changing the object's angle doesn't cause any issue you can enable Set Angle on the 8direction behaviour and the object's angle will also change with the movement and the original events you have should work as it will keep the last angle.

    Another is to grab the 8 direction movement angle on button release and save it in a global variable, then use this to compare.

    Another is to use the walking animation that is playing as the object stops. If walk right animation is playing, then set to idle right.

    Also if you are only using 4 directions I don't think you need to use 'is between' condition it should be the same 4 possible values.

lionz's avatar

lionz

Member since 5 Aug, 2013

Twitter
lionz has 79 followers

Trophy Case

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

26/44
How to earn trophies