lionz's Recent Forum Activity

  • 'Pick instance with UID Jaune.ID' this does nothing. Use a global variable instead of an instance variable to pick the object again in the second event. Set global variable to object.UID in the first event. Change to pick instance with UID - global variable in the second event.

  • It's not complicated if you use events but you've chosen to use scripting, an additional feature which is programming in javascript. I don't think you can even access the array object in the way that you're attempting but I could be wrong.

    You likely won't be able to use the usual methods like array.at(a,b) so probably it doesn't recognise MyArray at all, thought I've not tried this combination of events and javascript before. I assume you create the array yourself in code if you decide to go down the scripting method, something like const MyArray = [a,b,c]

    If you can use such methods as above in the scripting like array.at(a,b) from the array object then this looks like a separate coding issue to do with scope of variables and accessing the array.

  • Sorry I don't know, you can log the variable to see if it's as you expected. I would not use arrays like this though I would just call the function.

  • Did you buy it because it looks like you're not subscribed. If you have a problem with local storage please send some more information, we can't do anything with this post.

  • Maybe try putting the array value inside String(). Also I'm trying to work out why you would need to store function names in an array and call from there because you still need a triggering condition, at which point you might as well just use the name itself.

  • Ah sorry with a system trigger once attached so it starts the timer only once and not constantly. And with the timer counting down rather than up then the actions should be reversed so enemy not on screen start timer and enemy on screen stop timer.

  • Add timer behaviour to the enemy then say :

    enemy is on screen, start timer

    enemy is not on screen (is on screen inverted), stop timer

    enemy timer = time limit, enemy destroy

  • The project file can be shared from something like google drive or dropbox

  • You can detect collision with object A collides with object A, the problem is the picking and applying actions after this. There is pick nth instance you can use 0 and 1 but there's no guarantee of picking either one, I think it's done by lowest UID.

  • All that's left is to share the project file so we can see the issue.

  • It might not be saving because your tap event is in an event sheet not linked to the other layouts. To save properly the event sheet must be linked to the other layouts, not the initial one where you are loading, because you seem to move to another layout.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So is the audio playing? Is the variable set to true ?

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