Beekiller's Forum Posts

  • Thanks for the info, if i understand well, first i create a invisible sprite, containg the image SVG or create one and paste to pinned with the behavior of pinned right?

  • hI!

    I use in my proyect 4 image svg but ist same with sprite, cause the image svg dont have collision set.

    In the future we can have the same conditions? I prefer SVG image cause in my case not change the quality of the resolution.

  • Hi guys, i create this

    With this code

    I try to do a lot of things, but i want the same object with the same noise in canvas 1 and canvas 2. But i try and try and i cant!!!!! Always are different.

    Any help?

    I need like this

    When you use a blue/red glasses a circle appears.

  • This is next part of my project.

    I use a 3d glasses for convergence exercises. But i have two problems, i move it and the converge.

    But i want the blue random point RDS was the same in the red square. The two squares i need the same. I did some changes but always work but are diferent.

    This is to be create a Stereogram exercises like this:

    This cross are the same patron.

    This is my event;

    {"is-c3-clipboard-data":true,"type":"events","items":[{"eventType":"variable","name":"y","type":"number","initialValue":"0","comment":"","isStatic":false,"isConstant":false},{"eventType":"variable","name":"x","type":"number","initialValue":"0","comment":"","isStatic":false,"isConstant":false},{"eventType":"variable","name":"value","type":"number","initialValue":"0","comment":"","isStatic":false,"isConstant":false},{"eventType":"block","conditions":[{"id":"on-start-of-layout","objectClass":"System"}],"actions":[{"id":"set-layer-background-color","objectClass":"System","parameters":{"layer":"0","color":"rgbEx(0, 0, 0)"}},{"callFunction":"guardar instantaneas"}]},{"eventType":"block","conditions":[{"id":"on-snapshot","objectClass":"LienzoDeDibujo"}],"actions":[],"children":[{"eventType":"block","conditions":[{"id":"repeat","objectClass":"System","parameters":{"count":"LienzoDeDibujo.SnapshotWidth"}}],"actions":[{"callFunction":"x"}],"children":[{"eventType":"block","conditions":[{"id":"repeat","objectClass":"System","parameters":{"count":"LienzoDeDibujo.SnapshotHeight"}}],"actions":[{"callFunction":"y"},{"callFunction":"value"},{"id":"snapshot-set-pixel","objectClass":"LienzoDeDibujo","parameters":{"x":"x","y":"y","color":"rgba(0, 0, value*100, 100)"}}]}]}]},{"eventType":"block","conditions":[],"actions":[{"id":"load-snapshot","objectClass":"LienzoDeDibujo"}]},{"eventType":"block","conditions":[{"id":"on-snapshot","objectClass":"LienzoDeDibujo2"}],"actions":[],"children":[{"eventType":"block","conditions":[{"id":"repeat","objectClass":"System","parameters":{"count":"LienzoDeDibujo2.SnapshotWidth"}}],"actions":[{"callFunction":"x"}],"children":[{"eventType":"block","conditions":[{"id":"repeat","objectClass":"System","parameters":{"count":"LienzoDeDibujo2.SnapshotHeight"}}],"actions":[{"callFunction":"y"},{"callFunction":"value"},{"id":"snapshot-set-pixel","objectClass":"LienzoDeDibujo2","parameters":{"x":"x","y":"y","color":"rgba(value*100, 0, 0, 100)"}}]}]}]},{"eventType":"block","conditions":[],"actions":[{"id":"load-snapshot","objectClass":"LienzoDeDibujo2"}]},{"eventType":"block","conditions":[{"id":"on-snapshot","objectClass":"LienzoDeDibujo3"}],"actions":[],"children":[{"eventType":"block","conditions":[{"id":"repeat","objectClass":"System","parameters":{"count":"LienzoDeDibujo3.SnapshotWidth"}}],"actions":[{"callFunction":"x"}],"children":[{"eventType":"block","conditions":[{"id":"repeat","objectClass":"System","parameters":{"count":"LienzoDeDibujo3.SnapshotHeight"}}],"actions":[{"callFunction":"y"},{"callFunction":"value"},{"id":"snapshot-set-pixel","objectClass":"LienzoDeDibujo","parameters":{"x":"x","y":"y","color":"rgba(0, 0, value*100, 100)"}}]}]}]},{"eventType":"block","conditions":[],"actions":[{"id":"load-snapshot","objectClass":"LienzoDeDibujo3"}]},{"eventType":"block","conditions":[{"id":"on-snapshot","objectClass":"LienzoDeDibujo4"}],"actions":[],"children":[{"eventType":"block","conditions":[{"id":"repeat","objectClass":"System","parameters":{"count":"LienzoDeDibujo4.SnapshotWidth"}}],"actions":[{"callFunction":"x"}],"children":[{"eventType":"block","conditions":[{"id":"repeat","objectClass":"System","parameters":{"count":"LienzoDeDibujo4.SnapshotHeight"}}],"actions":[{"callFunction":"y"},{"callFunction":"value"},{"id":"snapshot-set-pixel","objectClass":"LienzoDeDibujo2","parameters":{"x":"x","y":"y","color":"rgba(value*100, 0, 0, 100)"}}]}]}]},{"eventType":"block","conditions":[],"actions":[{"id":"load-snapshot","objectClass":"LienzoDeDibujo4"}]},{"eventType":"block","conditions":[{"id":"on-key-pressed","objectClass":"Teclado","parameters":{"key":37}},{"id":"key-is-down","objectClass":"Teclado","parameters":{"key":37}}],"actions":[{"id":"set-x","objectClass":"LienzoDeDibujo","parameters":{"x":"LienzoDeDibujo.X-5"}},{"id":"set-x","objectClass":"LienzoDeDibujo2","parameters":{"x":"LienzoDeDibujo2.X+5"}},{"id":"set-x","objectClass":"LienzoDeDibujo3","parameters":{"x":"LienzoDeDibujo3.X-5"}},{"id":"set-x","objectClass":"LienzoDeDibujo4","parameters":{"x":"LienzoDeDibujo4.X-5"}}],"isOrBlock":true},{"eventType":"block","conditions":[{"id":"on-key-pressed","objectClass":"Teclado","parameters":{"key":39}},{"id":"key-is-down","objectClass":"Teclado","parameters":{"key":39}}],"actions":[{"id":"set-x","objectClass":"LienzoDeDibujo","parameters":{"x":"LienzoDeDibujo.X+5"}},{"id":"set-x","objectClass":"LienzoDeDibujo2","parameters":{"x":"LienzoDeDibujo2.X-5"}},{"id":"set-x","objectClass":"LienzoDeDibujo3","parameters":{"x":"LienzoDeDibujo3.X+5"}},{"id":"set-x","objectClass":"LienzoDeDibujo4","parameters":{"x":"LienzoDeDibujo4.X-5"}}],"isOrBlock":true},{"functionName":"x","functionDescription":"","functionCategory":"","functionReturnType":"none","functionIsAsync":false,"functionParameters":[],"eventType":"function-block","conditions":[],"actions":[{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"x","value":"loopindex"}}]},{"functionName":"y","functionDescription":"","functionCategory":"","functionReturnType":"none","functionIsAsync":false,"functionParameters":[],"eventType":"function-block","conditions":[],"actions":[{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"y","value":"loopindex"}}]},{"functionName":"value","functionDescription":"","functionCategory":"","functionReturnType":"none","functionIsAsync":false,"functionParameters":[],"eventType":"function-block","conditions":[],"actions":[{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"value","value":"random(1)"}},{"id":"set-function-return-value","objectClass":"Functions","parameters":{"value":"random(1)"}}]},{"functionName":"guardar instantaneas","functionDescription":"","functionCategory":"","functionReturnType":"none","functionIsAsync":false,"functionParameters":[],"eventType":"function-block","conditions":[],"actions":[{"id":"save-snapshot","objectClass":"LienzoDeDibujo"},{"id":"save-snapshot","objectClass":"LienzoDeDibujo2"},{"id":"save-snapshot","objectClass":"LienzoDeDibujo3"},{"id":"save-snapshot","objectClass":"LienzoDeDibujo4"}]}]}

    | Global número y‎ = 0 | Global número x‎ = 0 | Global número value‎ = 0 + Sistema: Al iniciar escena -> Sistema: Establecer color de fondo de la capa 0 a rgbEx(0, 0, 0)}. -> Funciones: Llamar a guardar instantaneas + LienzoDeDibujo: Al hacer instantánea ----+ Sistema: Repetir LienzoDeDibujo.SnapshotWidth veces -----> Funciones: Llamar a x --------+ Sistema: Repetir LienzoDeDibujo.SnapshotHeight veces ---------> Funciones: Llamar a y ---------> Funciones: Llamar a value ---------> LienzoDeDibujo: Establecer el píxel en la instantánea de (x,y) a rgba(0, 0, value×100, 100)) + (no condiciones) -> LienzoDeDibujo: Cargar instantánea en el lienzo + LienzoDeDibujo2: Al hacer instantánea ----+ Sistema: Repetir LienzoDeDibujo2.SnapshotWidth veces -----> Funciones: Llamar a x --------+ Sistema: Repetir LienzoDeDibujo2.SnapshotHeight veces ---------> Funciones: Llamar a y ---------> Funciones: Llamar a value ---------> LienzoDeDibujo2: Establecer el píxel en la instantánea de (x,y) a rgba(value×100, 0, 0, 100)) + (no condiciones) -> LienzoDeDibujo2: Cargar instantánea en el lienzo + LienzoDeDibujo3: Al hacer instantánea ----+ Sistema: Repetir LienzoDeDibujo3.SnapshotWidth veces -----> Funciones: Llamar a x --------+ Sistema: Repetir LienzoDeDibujo3.SnapshotHeight veces ---------> Funciones: Llamar a y ---------> Funciones: Llamar a value ---------> LienzoDeDibujo: Establecer el píxel en la instantánea de (x,y) a rgba(0, 0, value×100, 100)) + (no condiciones) -> LienzoDeDibujo3: Cargar instantánea en el lienzo + LienzoDeDibujo4: Al hacer instantánea ----+ Sistema: Repetir LienzoDeDibujo4.SnapshotWidth veces -----> Funciones: Llamar a x --------+ Sistema: Repetir LienzoDeDibujo4.SnapshotHeight veces ---------> Funciones: Llamar a y ---------> Funciones: Llamar a value ---------> LienzoDeDibujo2: Establecer el píxel en la instantánea de (x,y) a rgba(value×100, 0, 0, 100)) + (no condiciones) -> LienzoDeDibujo4: Cargar instantánea en el lienzo + Teclado: Al presionar ← + O Teclado: ← Está presionada -> LienzoDeDibujo: Establecer X a LienzoDeDibujo.X-5 -> LienzoDeDibujo2: Establecer X a LienzoDeDibujo2.X+5 -> LienzoDeDibujo3: Establecer X a LienzoDeDibujo3.X-5 -> LienzoDeDibujo4: Establecer X a LienzoDeDibujo4.X-5 + Teclado: Al presionar → + O Teclado: → Está presionada -> LienzoDeDibujo: Establecer X a LienzoDeDibujo.X+5 -> LienzoDeDibujo2: Establecer X a LienzoDeDibujo2.X-5 -> LienzoDeDibujo3: Establecer X a LienzoDeDibujo3.X+5 -> LienzoDeDibujo4: Establecer X a LienzoDeDibujo4.X-5 * Al ejecutarse la función 'x' -> Sistema: Establecer x a loopindex * Al ejecutarse la función 'y' -> Sistema: Establecer y a loopindex * Al ejecutarse la función 'value' -> Sistema: Establecer value a random(1) -> Funciones: Establecer el valor de retorno random(1) * Al ejecutarse la función 'guardar instantaneas' -> LienzoDeDibujo: Guardar instantánea -> LienzoDeDibujo2: Guardar instantánea -> LienzoDeDibujo3: Guardar instantánea -> LienzoDeDibujo4: Guardar instantánea

    How can i do?

    Thanks a lot.

    Tagged:

  • Thanks for the help, i did a little bit different but this could be great for my next part of my app.

    Thanks a lot ;)

  • This is my example, is one text into a loopindex to take 1 to 200 numbers, i can create just i want.

    The question is; how can i do one of them are in blue and the others in red ramdonly.

    Always i use some code, but when i use it, the item is changing between them, and i want a few in red or a few in blue, odds in red, pairs in blue.... something like this.

    Can you help me?

    Thanks

  • Iam learning a lot, but i could do some kind, but i have some idea, if we hace a table with 10x10 we have the numbers with order.

    If i change the px of the text i put more big always the numbers is overlap.

    Could be exist something to change?

  • Great idea!!!!! Thanks a lot for helping me.

  • Yea more or less is want i need.

    SEe my image:

    Is that, i see you put the frame for have overlaping, but with text isnt exist.

  • I put this for the object, in this case ist the numbers into de border of the screen.

    But the numbers are above one each other, and i dont wanna this. How i could do that?

    Thanks again

  • Thanks a lot, i put the idea into my game and works, then i try to put the loot into a variable for the options, who the player choose how many numbers could get into the screen.

    Now im trying the number doesnt appear in the border of the screen, and appear together,

  • I create a mini game who appears X text numbers in the screen with a global variable, for example i put 10.

    Then i need to touch in correct order, 1 to 10 or 10 to 1, but i try some kinds of behaviorus but it doesnt works.

    For example, i put a global variable called up or down, and try to the conditional int he game but nothing,

    Some ideas???

    {"is-c3-clipboard-data":true,"type":"events","items":[{"eventType":"variable","name":"cantidadnumeros","type":"number","initialValue":"10","comment":"","isStatic":false,"isConstant":false},{"eventType":"variable","name":"descendente","type":"number","initialValue":"10","comment":"","isStatic":false,"isConstant":false},{"eventType":"block","conditions":[{"id":"on-start-of-layout","objectClass":"System"},{"id":"repeat","objectClass":"System","parameters":{"count":"cantidadnumeros"}}],"actions":[{"id":"create-object","objectClass":"System","parameters":{"object-to-create":"NUMEROS","layer":"0","x":"random(LayoutWidth)","y":"random(LayoutHeight)"}}]},{"eventType":"block","conditions":[{"id":"on-created","objectClass":"NUMEROS"}],"actions":[{"id":"set-text","objectClass":"NUMEROS","parameters":{"text":"cantidadnumeros"}},{"id":"subtract-from-eventvar","objectClass":"System","parameters":{"variable":"cantidadnumeros","value":"1"}}]},{"eventType":"comment","text":"EVENTO CUANDO SE TOCA EL NÚMERO CORRECTO"},{"eventType":"block","conditions":[{"id":"on-tap-object","objectClass":"ControlTáctil","parameters":{"object":"NUMEROS"}}],"actions":[{"id":"destroy","objectClass":"NUMEROS"},{"id":"play","objectClass":"Sonidos","parameters":{"audio-file":"Acierto","loop":"not-looping","volume":"0","tag-optional":"\"\""}}]}]}Code.Value

  • Hola a todos ahora en español, y luego en ingles. A ver si ahora podemos llegar a una traducción correcta ^^

    Tengo los 5 peces en el juego, pero no quiero que la imagen de los mismos salgan como en la fotografía, pero que puedan salir por el lado izquierda o derecha, y salir por el otro lado.

    Lo que quiero es que por los bordes laterales puedan pasar, pero por los verticales se queden dentro de la escena.

    Como se ve en la foto, los peces se salen de la escena, la idea es que los peces usen el comportamiento "rodear", pero que entren dentro de la escena por el vertical y no se salgan.

    -----------------------------------------------------

    Hello everyone now in Spanish, and then in English. Let's see if we can now arrive at a correct translation ^^

    I have the 5 fish in the game, but I don't want the image of them to come out as in the picture, but that they can leave on the left or right side, and leave on the other side.

    What I want is for the lateral edges to pass, but for the vertical ones they remain within the scene.

    As seen in the photo, the fish leave the scene, the idea is that the fish use the "surround" behavior, but that they enter the scene vertically and do not leave.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • But when I use it the items in this cases the fishes, are in lateral movement in the x axis, don’t use the behaviour round, that’s the problem...

    Still in the scene.

  • Hi Everyone

    I have a problem with my therapeutic game.

    I have several objects that if I put the scene restriction behavior correctly they do not protrude from the edge of it.

    But but for example they cannot use the behavior surrounding the scene.

    How can I not see an object outside the scene?

    + Sistema: Al iniciar escena + Sistema: Repetir cantidadpez veces -> Sistema: Establecer direccionpez a elegir(0,1) -> Sistema: Crear objeto PEZ1 en la capa 0 en (aleatorio(AnchoEscena), aleatorio(AltoEscena)-PEZ1.Alto) -> PEZ1: Establecer tamaño a (PEZ1.Ancho÷4, PEZ1.Alto÷4) + PEZ1: Al crearse + Sistema: direccionpez = 0 -> PEZ1: Establecer No reflejado -> PEZ1: Establecer la velocidad Horizontal de Personalizado en -100 + PEZ1: Al crearse + Sistema: direccionpez = 1 -> PEZ1: Establecer Reflejado -> PEZ1: Establecer la velocidad Horizontal de Personalizado en 100 + ControlTáctil: Al hacer gesto de toque en PEZ1 + PEZ1: Está reflejado -> PEZ1: Destruir -> Sonidos: Reproducir Burbujas sin bucle con 0 dB de volumen (etiqueta "") + ControlTáctil: Al hacer gesto de toque en PEZ1 -> Sonidos: Reproducir Error sin bucle con 0 dB de volumen (etiqueta "")

    Can you see in the img