lionz's Recent Forum Activity

  • Inventory can be done with an array, if array is full you pop off the top X(row) and put that item on the ground, while adding the new one to the back of the array.

  • tokenat() will be helpful, it's maybe better explained. Keep the event where you add 1 to the variable on click to increase it. Have another string variable (here I refer to it as 'NPC.dialogue') on the NPC which is the entire dialogue they will have and write each message as one long bit of text with separators, such as "Hello_I am an NPC_Bye".

    Then with actions you set the text to tokenat(NPC.dialogue,NPC.variable,"_")

    This picks the source text so the string variable, the index which is the number and the separator which I used underscore. It allows you to move through one long string of text with each click, where the number variable is the position in the text.

    So when NPC.variable=0 it will show "Hello", when var is 1 it will show "I am an NPC" and when var is 2 it will show "Bye" etc.

    This is useful because you won't need any conditions to compare the variable and it will apply to all NPCs, very easy.

  • You wouldn't use that operator in this scenario because for example when the variable is 2 you are trying to set the text but it will also run that 0 and 1 are false so set text to nothing, you are trying to set multiple texts at the same time. Just use a normal compare variable condition if variable=0 and if variable=1. Or to go one step further you could write all the dialogue as a string with a separator and use tokenat() expression where the index is the NPC variable.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You have a typo in Processing when you start the timer

  • Nice. If I remember correctly those platforms are too high for Dizzy.

  • Create a permutation table using Advanced Random from 1 to 30, this will be all the numbers from 1 to 30 randomly shuffled. Then use the first 8 numbers for the variable, expression is for example Advancedrandom.Permutation(0) for the first number.

  • Ah ok that's different to a few years ago, at least you can test with real ads. And you removed the create action in case it cancels out the other ad?

  • You can't say if it's admob until you confirm the events are running and that function is actually running. If it gets to that point then you can think about admob settings. Also I think you're meant to run it in test mode so you don't get account banned?

  • The problem is OP has said they cannot recover the code but you can. If you move the variable back into the global scope the events return as they were before so nothing is lost.

  • Is creating another one while showing the previous one standard? You could try removing that first to see if it has any effect. Also are you sure the function is running? Add some logging to find out. What platform are you testing it on?

  • I mean both your posts now contain no information about the problem so not sure how I can help further.

  • Ah okay you changed it to a local variable, don't move the globals there is no need to organise them or whatever you were trying.

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