arcalaus's Forum Posts

  • Hi!

    I want to load a portion of an image into a sprite, then masking it with another sprite.

    I used Pode's ImageTextonSprite to do the first, but I can't do the masking part.

    I tried scirra "destination atop" blending but, since back image is always bigger than the masking sprite, undesired effects appear when two sprites are next.

    (I want to make a jigsaw puzzle, and I have a set of "jigsaw cuts" for the mask, this is why putting a mask near the other one matters).

  • Congratulations to the winners, and Merry Christmas to all.

  • Entry

  • I guess a simple "restaurant game" (like dinerdash or the purbleplace cake factory) can be achieved easily with less than 100 events... depending on the level of detail you want to provide...

    Or you can made a simple memory game (examples available) with a food-theme.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Also, you can make your first games with the downloadable sprite pack, or search for free sprite packs (or free art) in the forums.

  • Hi!

    Compare these two action sets:

    a) Repeat 2 {

          System.Create object (Sprite1) at (Sprite2.X,Sprite2.Y)

          Sprite1.Set Bullet angle of motion to (floor(rnd*360))

    }

    b)Repeat 2 {

          Sprite2.spawn object (Sprite1) at point (0)

          Sprite1.Set Bullet angle of motion to (floor(rnd*360))

    }

    While (a) makes 2 different copies of Sprite1 moving at different angles, (b) shows two ovelapped instances of Sprite1 moving at same angle (user sees only one).

    I guess "Sprite2.Spawn Sprite1" does not pick the new instance of Sprite1, while "System.Create Sprite1" does.

    This behaviour should be clarified in manual and in the User Interface Hints.

    (I've tested this with both r112 and r113).

  • WebGL Effects would be easier to use if you were able to read in "Set Effect parameter" the name of the parameter you are changing.

    You can read the name by browsing the Effect xml file, but I find very odd to force programmers to define parameter names and then don't use parameter names at all in C2. I guess parameter names are used in Construct classic.

  • Do you think I could use your plugin to do a movement detection (i.e. getting sprite1 from camera, getting sprite2 from camera, pasting blue into Alpha, and then xor-blending sprite 1 and sprite 2? I tried to do that with webgl effects -- but they are applied only on video memory and resulting images are not accesible for canvas.

  • Hi!

    I was trying to make a simple webcam motion detection app by loading sprites with usermedia snapshots at set intervals, and then calculating the difference between them with a "difference" effect.

    My idea was to load the resulting image into a canvas object (using the canvas plugin by R0J0hound), so I can do pixel-color based collision detection.

    But when I paste sprites into the canvas object, effects are lost.

    I don't want to use the "Snapshot canvas" System action, because it saves the image from all layers. Any Idea?

    Might I use two different canvas objects and manually calculate the difference?

  • I'm doing that and runs better in that order, but still repeating sometimes (i.e. picking instances without the right instance variable).

    Is there a way to detect if there is no instance with the right variable at all? i.e., can I count the result of a "compare instance variable"?

    If I can't, then I'll add a counter to detect if all instances have the variable already set.

  • Hi!

    I wonder if I can combine the "Pick random instance" with the "Compare instance variable". I'm making a Geography quiz using sprites as questions, and I would like to choose a random sprite from the un-answered ones.

    In my test project I see that a mere combination of "Pick random instance" and "Compare instance variable" in same event does not work. Do you think putting one or the other as sub-event would work?

  • Many thanks to all.

    I like your tiny cards, telles0808. Where did you get them from? Mine are from SVG-cards 1.01, that are good for high resolution, but render poorly at low resolution.

  • I'm using array objects indeed. I forgot they are called "array" (not matrix) in computing.

  • Consider a smaller/simpler "Loading" layout. In my browser, I have to wait 30 seconds before I see the "Loading" message.

    (Maybe it has something to do with game being stored at dropbox)

  • Game plays fine in my browser, but it is a Chrome with a big screen (1600x900).

    As for same first-letter words, could you select the word in the FASTER zombie, instead of selecting thw word in the FIRST zombie?