lionz's Recent Forum Activity

  • You can export as JSON format, is that good enough?

  • You need one knight object, with multiple instances. The skill is an instance variable that you edit.

  • Probably an order or timing issue, the value must not have changed at array 1 when you set it in array 2. Check the order of events. Debug it and see what value it thinks is at 2,3.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Probably missing a 'for each' and it is picking one instance. Difficult to confirm without screenshot of the events.

  • I imagine the process to be like this :

    End of level, update stars value in the array for that level

    On map screen load, update all level images based on array data

    Another way to do it is to just use variables and use 'save' game to save the state of the game. You wouldn't need a global variable for each level, probably one track to track the current level and the stars obtained then when you return to the map you update the relevant level. Problem with this is that it is not permanently stored anywhere and it's hard to track if bugs occur, but you can give the level objects 'persist' behaviour so their variables remain the same.

  • Now I know what data you are storing it should be an array, you can link the levels to the array rows by instance variable.

  • I would first deal with the initial halt logic before trying to implement the knight detecting other knights. It's not as easy as it sounds to do this kind of stuff for multiple enemies, sure it will work perfectly for one instance but then seem to break when you add more. You have to ensure the picking logic is sound, I usually do this with functions and you can pass UID through this to ensure you are picking the correct sprite. When a knight reaches the end of the level you need to then pick all knights and stop them. If the other issue is that knights move with the move variables and override the general halt logic then you need to add another variable with a condition that makes sure this logic isnt used when everyone has stopped.

  • "For example, I have game level map layout, whith level numbers as well as level completion progress."

    This can be stored as global variables or in an array. If you need any other advice you should give more details about the game and what data you are storing.

  • You would set angle to angle+1 every tick, something like this. Or you can make it an animation.

  • Oh right it's because you're using glove button object ? The gloves is what matters for the animation right haha. I don't use construct 2 anymore but you can open this in the free version of construct 3 to have a look.

    dropbox.com/s/pri091qpnilncxb/gloves.c3p

  • The bottom bit looks ok. The top line should be as I wrote it,

    sprite.animationframe = sprite.animationframecount-1. They are the two values. The action on the right of this which is currently empty should be set animation frame to 0

lionz's avatar

lionz

Member since 5 Aug, 2013

Twitter
lionz has 79 followers

Trophy Case

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

25/44
How to earn trophies