lionz's Recent Forum Activity

  • Are you trying to set it to the lowest slot available like when you drop it outside the inventory or are you saying you want it to snap back to the slot it was just in?

    To pick the lowest slot available think about it, you need to apply the logic 'pick slot with lowest number that is not occupied' in this scenario, same as when you drop it outside the inventory. Instead under the isOccupied check you replace 'slotnumber = invslot.number' with the 'pick slot with lowest number and is not occupied' condition.

    If the expected behaviour is the latter that it snaps back to the slot it was just dragged from the problem is to do with inventory slots being picked. In the events you have narrowed it down to pick the invslot you are overlapping and only this, so you cannot then pick the previous invslot it was assigned. To fix this you open up the instances again to be picked by adding a 'Pick all invslots' condition above the condition you have now. This will then allow it to pick the previous invslot based on item variable.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If you mean the 5th power up, it looks ok? What is wrong with the enemies?

  • You don't need the variable you can just use 'is not jumping' condition directly

  • Yes thank you that link is working. When you return to a layout as a standard it resets to default. You can bypass this by adding 'Persist' behaviour to the objects you want to keep their previous state. So with this behaviour on the power up and enemy objects they will remain destroyed when you return to that layout.

  • I need a proper share link please, this thing asking me to log in to Brighton College is not going to work. Use onedrive like the first link.

  • That's a bad link

  • You can just use an Else. If NPCs have LOS, Else set text to "". The Else triggers when nothing has LOS. Also please remove the trigger once conditions. For the typewriter logic you'll have to move it somewhere else to trigger once, separate logic required such as switching a variable to true or false on the specific NPC.

  • Hello! Please repost your question when you are sober

  • You can check what the instance variable is doing in the debug view. Check if it goes above 4. What you are saying is there are 5 bits of dialogue and no 6th right? It should work really but you can share screenshot of that event if you are having trouble.

    For deciding between dialogue lines maybe you have to expand into an array to store complex dialogue. It really depends on the game. If you can happily choose between a few strings of dialogue you can still use this method by choosing between multiple string variables. So if topic A begins then choose NPC.dialogue1 and if topic is B then choose NPC.dialogue2. If it is to do with making choices and dialogue following on from options the player is selecting then that is more complex and maybe you need an array and a different approach.

  • Where you have the 4 condition blocks for the operation variable, create another one below there but before the text box conditions. You can even do this by copy and pasting one of the operation variable blocks and then deleting the conditions from there. Set the text at that point, you don't need anything on the left. Look how you are setting the text at the top before the number variable has been decided.

  • Call the function only once not twice. Move the set question text down in the function so it's after you set the numbers. For layout, if you move to Correct then it must use Correct's event sheet but you have none. You can add to Correct on start of layout go to quiz, something like this.

  • Sharing a prototype here for my simple mobile game where you play cards against an AI opponent to take down their tower and gather resources.

    As you can see the art is also WIP, I will hire a UI artist in January to get this released hopefully in the same month. Note that the UX is probably bad as I will be handing that task over to the UI artist.

    I am particularly proud of the slick AI opponent. Good luck and any ideas, comments or critiques are welcome. Tap to play or hold down to discard. Use resource to play cards and gain resource each turn.

    towercards1.netlify.app

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