lionz's Recent Forum Activity

  • It would be some logic like when you click on an item to pick up, go with array events for each x,y - if value= nada, stop the loop and set curx,cury to item name / animation name. Will replace the first nada (empty slot) with the item.

  • I don't see a tag condition for solid behaviour, I usually go for an instance variable to pick out the enemy.

  • You would need to add the Mouse or Touch object depending if it's web or mobile, then you create events like 'On sprite clicked' or 'On sprite tapped' and it becomes like a button.

  • You do not have permission to view this post

  • It's what I described above, you are setting the variable to 1 or 2 instantly, not 100. So then you can click on the background again with the variable set to 1 or 2 which triggers those conditions. You should use a different variable for locking out clicks, not the same variable that you are changing for the questions - this will be an additional condition, so QuestionActive=? and also CanClick=? which you toggle on and off.

  • Guessing you mean the question active variable, when you tap and set it from 0 to 1 it means within the same tap the next event can run because you made it true by setting it to 1. Not sure of the reason for the variable but that's probably why it lets you click the next panel. Consider using a general lock out variable that swaps only between 2 values to lock out the tapping.

  • I'll give a general idea as it's a lot of code but you should store the active spell name or some kind of global var so you know you have something equipped, you may already have this then ok. When you select an active spell, if there already is one, you need logic to delete the old one unless adding the new one does this already, then having stored the name of the old active spell you can run the loot pick up function on it as though you are picking it up again so it will add to inventory - or clone the inventory item pick up function with aspects of it you want to keep and call it a spell swap function.

  • The issue as I understood it is that he clicks to create a tower then the second event also rotates the tower once as it is created which he doesn't want. The solution I gave is to create a stamped variable so only when it is created and stamped then it can be rotated i.e. not on the click where you spawn the tower, but on future clicks.

    The mouse button release also works because if you click to create a tower, it can't be rotated until you click a second time which is another solution to that problem. Family though cannot work for the reasons I mentioned, the black square is not a tower and it affects future events much like if you added the player to an enemies family.

  • This is where you use a Family, put all 3 objects into a Family and put the instance variable as a Family instance variable. Then you can say if Family.var=2 find path to Family.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hmm and this fade object works in other layout ? Check in debug view that there is an instance of that object in the second layout. You may have to share link to the project file to get more help.

  • Add other unrelated events see if it runs them like setting a global variable value. If not then it's problem with the event sheet set up.

  • If the event sheets are hooked up correctly then there's not enough info in the post. What specific events are not working ? What is the event that you mentioned is working ?

lionz's avatar

lionz

Member since 5 Aug, 2013

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