lionz's Forum Posts

  • From event 11 and down you have an 'OR experience > x' condition and when you go over 150 event 11 is always true, and on the right you're setting the animation to Swim, so if your score is 150 it will always try to play Swim animation even if you're dashing.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • No need to use functions, just conditions within that one function, if local var is 1 then play sound 1 etc

  • Yes the issue is what I've already described above, not sure what more I can say. In your example you don't have enough experience to do both 1 and 2, thats why it doesnt do them both. When you have 1600 experience it is enough to run both 1 and 2 because it is checking all of your events from top to bottom.

  • I'm not sure if that's a great way of doing it though even if it is working, you shouldn't have to create 500 objects to get this to work, just follow the above or I can make an example.

  • Restarting the layout does not reset the global variables so you must have another event doing it.

  • I still can't see the proper event structure but it sounds like it is changing the character level in the same tick so it changes character level to 1, which is true for the event below then changes it to 2. You can put it all in one event with sub events/else so it checks the level and only runs one of the actions.

    So if level = 1 do this else if level = 2 do this, not separate events down the sheet.

  • Oh and add a while arrcount is less than something so it doesn't keep calling the function.

  • You could probs do it all in one function, check for value at X of the array which is a global variable counter starting at 0, lets call it arrcount. In the function set a local variable to array.at(arrcount), then run your sound checks. Then wait as long as you want, add 1 to arrcount and call the function again.

  • These are the spikes I remember where he jumps in front of them because theyre on a layer behind, I don't see how that is a solid object? youtube.com/watch

    So if you create spikes sprite, don't set it to solid you can use player on collision with spikes.

  • If they are spikes in Megaman then they shouldn't be solid anyway is what I'm saying. You can do on collision with spike object but don't make it solid because why?

  • Player will always be destroyed when you go to a new layout unless you make him global (tick box on properties) or you create him again in the new layout.

  • Does it need to wait? What are you doing with the function because I thought you are just setting array value to a global variable.

  • Neither of those links work for me, but sure I will take a look if you can edit them

  • The array looks correct so the problem is whatever you're doing with that function and you have a wait before it that's never good because the loop can finish before you run the function the first time.