Knubbellttv's Forum Posts

  • I've tried it with a new blank project now.

    just a layout, the video object, the webm file and a text object that should change if the video is playing. nothing happens.

    here's the capx: transferxl.com/08vtFzM9L9kS7y

  • doesn't play :(

    If i double click the video in the video folder it shows the preview.

    But if i preview the layout it doesn't show anything. And sometimes the whole project crashes or doesn't load.

  • Hi!

    I've a problem with inserting videos.

    First I created the videos as thinktankintro.mp4. Then I've converted it to thinktankintro.webm, beacuse I read here, that webm causes not so much problems.

    Then I uploaded it into the video folder of my project. (Later I tried also to place it into the files Folder).

    Then I created the video object on the layout. (this layout is the first one. so the video should play automaticly after loading the layout!)

    then Set the settings of the video object to autplay YES and WEBMSource to thinktankintro.webm

    If I start the layout in different browsers it doesn't show the video. sometimes the game doesn't load.

    What can be the issue?

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • found the problem with some luck :)

    I forgot to set teh time scale again to 1.0. So the game was paused everytime.

  • Hi,

    I've a problem at the start of layouts.

    If I preview the game some Text Objects are not displayed. If I then restart the layout they appear as they should.

    Does someone know about this?

  • Hi,

    I've a problem with my scores and achievements.

    I press a button, system sets an X in the array to a number and dependening on it in the array_achievepos X = NOT= 0 the system spawns an achievement sprite.

    But if I have the same objects again and press the button it spawns another achievement sprite.

    I'm stuck. Can you help?

  • Hi Guys,

    I've aproblem of thinking for a better solution.

    I place an object A on a field and an Object B on another field.

    The fields get the animation Frame number from the objects and write them into a Var.

    If I then click the "merge" button (what is only enabled if the Vars are similiar), the Vars will be write into a Var called "checked".

    Now I use the "checked" Var fpr creating an achievement object.

    If "checked" is correct, it should spawn an achivement object sprite, set the size and position and write the checked value into an array.

    But my problem is now, that I decided to enhance the project and so there are not only 10 or 20 Objects for playing but nearly 100 or more. and I have to do the changes each time I create a new Layout (change Objects, change achievements, change numbers....)

    Do you know a better way to do this what is simple enough to understand by a beginner?

  • God damn, i found the error :)

    Take a look at the picture where the error comes and "achievement gets no value.

    Here's the updated one.

    I just needed to do the array loop first, because otherwise the globalVar "useArchive" gets it's update AFTER the "resultfinal" Update. this causes why every math is calculation with 0.

    Thank you all for helping!

  • Thanks so far.

    I'm sorry, my english isn't the best, so maybe I can't describe wats the problem...

    I've checked again and in debug layout i can see, that the achievement function does write into the array. Look at the "2".

  • 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 :(