korbaach's Forum Posts

  • ...did you see Audio anallyser example ?

    Web Audio API support

  • Now I want to record it into an array using some kind of stepping sprite.

    For example, I spawn a sprite the same size as the tiles I want it to be (16px by 16px), then I check to see if it overlaps a room. ..0 for nothing, 1 for room. ..I move it over by 16px.

    Once it reaches the end, I move the sprite down 16px and repeat the process.

    I think....

    You described something....

    like this:

    Stepping sprite.capx

    ..but of course I could be wrong...

  • 1.add Global Text Variable "ZombiText"

    ..add Global Number Variable "Phrase"=0

    On start of Layout set ZombiText

    "Theirs a glimmer of hate in its vacant bleeding eyes.#A open sore shows maggots squirming.#I simply want the text actions to repeat."[/code:320c99uf]
    pay attention!
    after every phrase I put "#"
    
    [img="http://i57.tinypic.com/bi2s0h.gif"]
    
    [img="http://i60.tinypic.com/303k0te.png"]
    
    You can add more phrases...just use "#" as separator...
  • On Start of Layout > Unimportant stuff
        Repeat GlobalVariable times > Create Player at 750, (350 + (GlobalVariable * 150))[/code:uyww9chj]
    
    That should mean that if I set my slider to 4, it would spawn 4 players, each with lower and lower y coords. However It seems to only spawn the last one.
    

    so..you code looks like:

    On Start of Layout > 
        Repeat 4 times > Create Player at 750, (350 + (4 * 150))[/code:uyww9chj]
    ...you "spawn" 4 players on the identical spot...
    
    Try:[code:uyww9chj]Repeat GlobalVariable times > Create Player at 750, (350 + (loopindex * 150))[/code:uyww9chj]
  • try:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • DonRIF ..first thanks for HTML5 APK Builder info..

    did you try a browser object?

  • something like this...

    ArrayInventory2.capx

  • .. the inventory could have any width, e.g.: a bag contain 10 spaces but i wanna make it bigger, than i buy a new one with 20 spaces..

    I think ....you know how to solve this..but just in case...

    ..Add Variable "Bag(max_slots)"=10

    ................and then compare.....if Variable<Array.Width....then.....Push item in the bag

    ..and when you "buy a new bigger bag"...set Variable to 20...

    EDIT:

    Sorry guys...my mistake (lapsus clavis )

    obviously ..should be:

    ................and then compare.....if Variable>Array.Width....then.....Push item in the bag

  • My system used a lot of invisible text objects ....

    Merlandese

    I'm sorry I did not mentioned ..TextHeight&Text.Width don't work with invisible Text object...

    but.. as you see in capx ..I use "set opacity to 0" and it works just fine...

  • If it was that easy for an application to bypass such an important server security then surely that would make the whole concept of CORS pointless, surely.

    It seams to me that you want to set CORS from C2...

    Yes

    ... that it was my intention...somehow "inject" CORS from C2...

  • .. in your example the intial array width is 0 and you use push back to create a "slot" and the expression"Set value at (ArrayPicked.Width-1, 1) to 1" to put the value, whic is great but, in my case, i already know how many slot i have in my invetory...

    I use " o width" and "push" because I dont know how meny slots you have in inventory...

  • I'm reading...I'm learning....

    I convinced myself that C2 has some kind of super power...

    i have Browser object and i have AJAX...

    so ..what is easier... than:

    On start of layout....Browser disable Same-origin policy

    Or

    On start of layout...Browser...-disable-web-security -–allow-file-access-from-files

    Thanks!

  • one Block.Sprite with 50 frames...?

    If mouse clicked on Palette-> spawn Block.Sprite

    ...................................................set frame to int(right(Palette.blockType,1)

    or something like that...

  • see.... if this helps you

    Example.capx