bartalluyn's Forum Posts

  • do you mean like portalling like this : youtu.be/zRf8JjmtUIk

    ?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I think that this tutorial might help you in some way:

    youtu.be/zRf8JjmtUIk

  • Hi,

    I've checked out your c3p file, and I think the issue is due to the fact that you're actually hardcoding all levels from 1 to 10 by copying the logic.

    I really wouldn't do that. I would make the level a variable and make functions that do the logic based on the variable. Only one set of logic instead of 10 times the same. Also, you could use dictionaries or arrays instead of txt files or you could alternatively make up the question using randomisation. For example: in the 1st level you would generate numbers between 1 and 10 and solutions between and 15. In level 2 generate numbers between 10 and 20 and solutions between 10 and 30. Something like that.

    If you want some inspiration on creating apps you can check out my youtube channel.

    There is no template for a quiz (yet) but you can see similar solutions for example

    for sudoku : youtu.be/Rq0iQGcVQtc

    for a logo quiz: youtu.be/rDKwhBwf7Ck

    Hope that helps you in some way.

  • did you uncheck the default controls checkbox on the behavior?

  • You do not have permission to view this post

  • Hi, maybe my video can be of any help?

    youtu.be/9ISEJK8vtZI

  • some video's on my youtube channel use arrays :

    youtu.be/fMtO7q1Wrus

    or

    youtu.be/Rq0iQGcVQtc

    In both you can see that data doesn't come from a text file, but from the built in array editor (which in essence is also a project file) and is loaded at runtime. It's pretty easy to edit the array in construct and read it through the ajax plugin. It doesn't matter if it's strings or numbers.

    Hope this helps

  • I do something similar in one of my youtube tuts:

    youtu.be/BpnkIL7XvvA

    only, they are not rotated. For that you will have to move the origin point and move them at an angle

  • Create placeholders at design time, create the slots at runtime is indeed how I would set it up, and depending on player/shop change the configuration and the way it looks

  • Thinking outside the box;

    what I did in a previous (large) project I circumvented this by creating a very large layout.

    It was a building with multiple floors.

    Instead of creating a layout per floor, I created them below one another on the same layout. Going to the next floor was a matter of fading in and out a black block sprite as kind of a transition, and meanwhile moving the scroll down by x pixels.

    It was very handy because i could then make an elevator for example to "teleport" people moving around across floors by moving them up and down x pixels.

    but maybe that's not what you want...

  • Good question, I haven't given that a lot of thought really...

    My first hunch would be to create the slots dynamically as well, making a grid of slots, and filling in the id's programatically, and looping as you do now. Something like that.

    Shouldn't be too hard to do, if you just set up a number of rows and columns, decide on the height and width of the slots, an offset between the slots, left margin, top margin, and you're good to go really.

    I'm a pretty big fan of placeholders, as you might have noticed on some of my video's on my youtube channel, and granted that has been prone to errors, but the need for generic systems is rarely the case. Certainly not in C3 as you don't (yet) have options to integrate predefined blocks of logic.

  • I added an "id" instance variable to the slots and filled the 4 slots with number 0 to 3

  • maybe you can post the c3p file if that's not a problem

  • You do not have permission to view this post

  • Hard to deduct from the text actually, but I would try the following:

    Change the slot to add an instance variable to indicate it is used. for example "occupied". 0 or 1. Initialise them to 0

    within the Dictionary loop,

    pick by evaluate with expression slot.category = dictionary.currentKey (or whatever holds the category)

    In a subevent. Pick 0th instance of slot. So within the first picking, you've got the first one. So you're left with only 1 slot with the correct category.

    Do your stuff with animations

    Set Occupied to 1.

    If you're interested you can check out my tuts on my youtube channel where I do stuff like that:

    For example in Solitaire: First pick by evaluate, and then within that pick top.

    Many many tutorials have "pick by evaluate" by the way, and also dictionary loops.

    You can check them out if you want.

    youtube.com/watch