lionz's Recent Forum Activity

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

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

  • Try Construct 3

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

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

  • You are using the 8 direction movement angle in the other screenshot so it would be the same. It's strange that you changed it at all if it is already working for walking.

  • One screenshot is using the object's angle and the other is using the 8 direction movement angle, they are two different things. Probably you want to change the object angle conditions to 8 direction angle. You can make use of 8 direction without ever adjusting the object's angle which may be what's happening here. Check in debug if the object's angle is changing or the value of 8 direction movement angle.

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