Knubbellttv's Recent Forum Activity

  • Hmm, my trigger once is enabled now.

    But if I played until score=3 and have some number in the array, it still displays "0 achievements gefunden" in the final result

  • Cool. thanks for the sites!

    I've reduced it to now around 210 MB memory usage :)

    but still having problems to insert the sounds and music correctly so they work everytime

  • Thank you.

    I've been around 100 to 150 objects, depending on the randomizer. Is that much?

    I've seen in the debugger, that the layout starts already with over 90 objects, but I can't see more than 20.

    I'm confused :)

  • I uploaded the c3p. maybe it's better to see it live.

    The "score" trigger event is in the group "Winning conditions".

    The event to fill the array with a number is under functions-->achievements--> on function achieve.

    The event for the Merge trigger (this is what triggers the achieve function) is under buttons-->Merge buttons.

    easyupload.io/oh1876

  • This is an example that will populate each cell of an array with a random number between 0 and 5

    and count the number of entry's that contains a number greater than 0.

    Thank your for your response!

    I've tried this but it gaves me the same result. With "trigger once" it doesn't count. Without it counts infinite :(

  • I try to give you the whole event:

    First if the player does combine two objects with the same checksum, this event writes a number to the array. Here it's f.e. "2"

    Then I can control this in debug layout. I can see, that the event triggers the animation (on the yellow background) and has inserted the "2" into the array (you can see it at the ground in the debug layout) --> Data 2 = 2

    So the player plays until he reaches the needed score. To ease it, I reduced it to "3" (score=3)

    then the game should pause and the "win" Layer appears while all of the math is triggering in the background.

    But there's an error I can't identify.

    The counter are working properly. They count the time and usage of objects and write it into the "use..." globalVars. Then they multiply it and write it into a "result...." globalVar". So I can get the final result displayed with all the math done.

    But the damn array doesn't count weather the field is empty (0) or filled with a number from 1 to 99. So it doesn't work at all or counts infinite :(

  • Hmm, If I place it like here at the "score=3" event, it doesn't count anything.

    If I disabled the "trigger once" it counts infinite :(

  • What are good tipps to reduce the memory usage?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • thank you for responding!

    the trigger event is simple. If a globalVar "score" reaches f.e. 5, the game ends and the array loop should be triggered. that works, but it does not stop looping. How can i tell him to only loop once?

    I've tried "trigger once" but it doesn't work.

  • Hi,

    I've a problem counting through the array.

    My array is x=99, Y=1, z=1

    If an event triggers ingame it writes a number into the array.

    when the game ends I need to loop through the array an count the amount of X-fields which have a number. All not filled array fields are still 0 (empty?)

    So I've made:

    System -> For "" from 0 to array.width -1

    --> (subevent): System Array.At(Loopindex)>0

    --> (event): Add 1 to globalVar

    Result: It counts infintly :(

    I've also tried things like System Array.At(Loopindex)NOT= 0 or System Array.At(Loopindex)<100

    What is my thought error?

    Hi,

    I've made some quiz game for fun and all works fine.

    Then I've added some soundfiles to the event sheets which I've had uploaded to the sounds folder.

    Make a preview and all works.

    then I've added some music to the musics folder and placed a playlist "on layout start". Construct 3 crashes immediatly then andd I have to save the project local.

    I've restored the local file, preview and it crashes again.

    So I load the project from the cloud where it is without the music but with the sounds.

    When I preview now, nothing happens. the popup comes and it doesn't load.

    I've tried to to make a desktop.exe form the project and the game works fine. But at the construct 3 online editor the preview and the debug layout still not working.

    To test it, I've deleted the sounds in the sounds folder. and the preview and debug works.

    But I want sounds and music in my game. So who can help me please to find my errors? :(

    PS: I'm also happy about performance tipps for my beginner code :)

    I've uploaded the latest c3p file here: easyupload.io/36nfam

  • Hi,

    I've made some quiz game for fun and all works fine.

    Then I've added some soundfiles to the event sheets which I've had uploaded to the sounds folder.

    Make a preview and all works.

    then I've added some music to the musics folder and placed a playlist "on layout start". Construct 3 crashes immediatly then andd I have to save the project local.

    I've restored the local file, preview and it crashes again.

    So I load the project from the cloud where it is without the music but with the sounds.

    When I preview now, nothing happens. the popup comes and it doesn't load.

    I've tried to to make a desktop.exe form the project and the game works fine. But at the construct 3 online editor the preview and the debug layout still not working.

    To test it, I've deleted the sounds in the sounds folder. and the preview and debug works.

    But I want sounds and music in my game. So who can help me please to find my errors? :(

    PS: I'm also happy about performance tipps for my beginner code :)

    I've uploaded the latest c3p file here: easyupload.io/36nfam

Knubbellttv's avatar

Knubbellttv

Member since 21 Nov, 2019

None one is following Knubbellttv yet!

Trophy Case

  • 5-Year Club
  • Email Verified

Progress

6/44
How to earn trophies