brunopalermo's Forum Posts

  • You must use an "impulse file" to generate the reverb. The Effects Example has some files you could check and maybe use.

    Cheers!

  • Hi Gareth!

    This file has one way of doing it. Probably not the BEST way, it's just something I did quickly so you can study it an improve.

    Hope this helps.

    Cheers!

  • Or you could just "Pick Nearest" flower to pot.X, pot.Y.

    Check your updated file here.

  • Could you elaborate on that? I'm not sure I understand the problem here.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If you're asking about the position of the character you should have variables on the door that tell the game the destination layout and position.

    This file has one way of doing it.

    Hope this helps.

    Cheers!

  • It should be the color you set. Without seeing the actual code it's kinda impossible to guess the problem. We know what's wrong, but we can't tell why it's wrong, which is the whole point.

  • I saw that Kyatric but it does not happen in the browser tab preview, only in the pop-up preview.

  • I don't use this version, but it seems to me this is an issue specific to the offline app when you're using the pop-up preview. If you change it to browser tab preview it won't happen.

    EDIT: I just installed the app and checked and it does not happen in browser tab preview as I guessed above.

    Cheers!

  • Can you share a file? What browser is this? This happens with all projects or just this one?

  • Unless you're having the same enemy moving at different speeds on different waves, you should do as Fib mentioned above.

    Now if you really want those values customizable on a per wave fashion, you could use an array or JSON. I, personally, think a JSON would be better.

    A wave JSON could look someting like this:

    {
    	"waves": [
    		{
    			"enemyTotal": 10,
    			"enemyTypes": [0,1],
    			"enemySpeed": 100,
    			"enemyShootingInterval": 0.2
    		},
    		{
    			"enemyTotal": 17,
    			"enemyTypes": [0,1,3,7],
    			"enemySpeed": 120,
    			"enemyShootingInterval": 0.2
    		},
    	]
    }
    

    Hope this helps!

    Cheers!

    I wouldn't rely on actually using a spinning mechanic to pick the random values.

    You should know if there was a win before the spinning actually happens.

    The Advanced Random plug makes this pretty easy.

    Also there is no easy way to check all combinations in a payline.

    But it's not like you need to be frugal with events anyway.

    Yep. That's why I suggested he should study the actuall math behind slot machines. :)

    That makes some sense however when you say "map the visible lines on an array" ...

    I've got it so that once it stops spinning I have a value for each symbol in an array that's mapped to the slot machine. I'm not sure how to trace paylines within this array.

    Yep. You got it. Lets say you got a 5x3 slots screen, it would be a 5x3 array with the value for each slot on the specific position at the array. For instance:

    The image above would be mapped in code like this:

    slotsArray = [
     [0],[2],[4],[2],[6],
     [1],[3],[3],[1],[3],
     [2],[1],[5],[5],[6]
    ]
    

    And you would need to have paylines stored, probably in another array, but this time a 3D one:

    paylinesArray = [
     [
     [0],[0],[0],[0],[0],
     [1],[1],[1],[1],[1],
     [0],[0],[0],[0],[0]
     ],
     [
     [1],[1],[1],[1],[1],
     [0],[0],[0],[0],[0],
     [0],[0],[0],[0],[0]
     ],
     [
     [0],[0],[0],[0],[0],
     [0],[0],[0],[0],[0],
     [1],[1],[1],[1],[1]
     ],
     [
     [1],[0],[0],[0],[1],
     [0],[1],[0],[1],[0],
     [0],[0],[1],[0],[0]
     ],
     [
     [0],[0],[1],[0],[0],
     [0],[1],[0],[1],[0],
     [1],[0],[0],[0],[1]
     ]
    ]
    

    You would also need an array to store which paylines the better "bought":

    betsArray = [0,3,5]
    

    So, in the ende, when you finish spinning you'd check the bets and for each bet you would compare the payline shape with the visible slots.

    It's a bit complicated, but I hope I have made myself clear.

    Cheers!

    Hey gamergod123!

    If you're using a modern slot layout, with paylines and stuff (if you don't know what they are or how they work, check this link) you should map the visible lines to an array and check every payline tracing on this array for matches.

    Also, a word of warning, slot machines are far more complex than most people think. You should check the math behind them.

    Hope this helps!

    Cheers!

  • You must use it under a "On Start of Layout" action, or something like this that runs once at a specific time. And use some rule for different positions, like I did below using random values for X and Y.

    TOTAL_FISH=200
    System | On Start of Layout
    ----+ System | Repeat TOTAL_FISH times:
    ---------+ System | Create object "Fish" at layer:0, x:random(LayoutWidth), y:random(LayoutHeight)
    

    Hope this helps...

    Cheers!

  • I see... :)