[PLUGIN] Canvas

From the Asset Store
Pixel Destruction like in "Worms" (Drawing Canvas based)
  • Hello R0J0hound

    Why doesn't canvas past SpriteFonts?

    I set initial visibility for all objects to invisible and canvas pasted only sprite and text.

  • Prominent: About the mirror/flip issue, I was able to do it by having to adjust the Canvas.X subtracting the width.

    Maybe this helps: https://www.dropbox.com/s/24io9jstjh6t3 ... .capx?dl=0

  • byondisoft , thanks! that works that is interesting that you have to re-position the canvas.

  • Prominent: Indeed.

    Maybe that's not the expected behavior.

    I remembered having to deal with that in the past in another code.

  • Hello everyone! I'm using the canvas plug-in to create a picture-in-picture Metroid style mini map (without an array) and I've been pretty successful so far. It needs one or two more tweaks before it acts exactly like Super Metroid. Here's the capx and a gif. I've commented as best I can.

    https://www.dropbox.com/s/81tgl80ukskhk ... .capx?dl=0

    It need some polish. If you stand between two tiles, both turn yellow. The mini map jumping along with the player is weird. I'm trying to get the map to scroll like this.

    I had this idea. Instead of the canvas mini map following the playerIndicator, it would follow whichever blackMapTile is currently playing the "playerOccupied" animation. Would something like this be possible because I can't get it to work.

  • haha! New capx and gif ya'll. That was quick. I implemented a Metroid-style scrolling. Now I just need to fix the issue that happens when you're overlapping and highlighting two tiles at once. I need to somehow make the game check what tile the player is overlapping with "more" and highlight just that tile. There's also a small that's bug not noticeable in the gif. When the player moves to a new tile, that new tile quickly flashes on and off before turning. And that repeats.

    https://www.dropbox.com/s/fa1bsrv7ns2ey ... .capx?dl=0

  • SOLVED, solution in Edit at bottom post.

    Hey, can anybody help me? I've managed to use this plugin in my game, it works really well. But for what seems like no reason whatsoever, the shadow casters (the 'p' sprites from the example) aren't being moved to the object's corners. It's really weird and annoying, can anyone help?

    I just copied the events and actions across from the example and changed the objects to what they need to be. It finds the right object, finds generally the right corners but then just doesn't move the shadow casters ('p') to them. It's almost like the math within the actions is just a little off, but it works fine in the example and this is the same everything as that! If anyone can spot what is wrong, that would be super helpful.

    EDIT: I figured it out, it's because the sprite's only image point was in the Top-Left. This breaks it, it has to be in the centre unless you want to play around with the actions and fix it. To fix it is fairly simple, when it spawns the ShadowCasters ('p' from the example) it spawns them at the sprite's 0 image point. So just make another image point on your sprite and set it to centre, then where it says "Image Point:" in the settings for "Spawn another object" put the number of the new image point.

  • Thanks for this Rojo!

  • Thanks for this tutorial and demonstration.

  • Does this work for iOS? (Using Cordova and Intel XDK)

    I made a Jigsaw Puzzle using this plugin but when i export it to iOS the pieces (canvas') don't appear.

    If so, how do I have to export it?

  • TimeMachine

    It should, i've never tested it. You could try turning webgl off in the project properties because this plugin doesn't perform well with webgl. Maybe that will correct something. Other than that it uses an html5 canvas internally which should just work on any html5 export.

  • Exactly what I'm looking for Thank A Lot <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

    If someone interested I use it like this :

    https://www.mediafire.com/?5sx1wo0wp1cvdri

  • Is that an option to make the canvas transparent ?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Gutogordo

    The clear canvas action?

  • Hi,

    This looks great. I am wanting to create a basic interactive whiteboard app for my students. Are there any tutorials on how to use canvas? (i.e. How to do paint bucket fills, eraser tools etc?)

    Also, is there anyway to 'replay' recently drawn lines? I'm wanting to be able to write something and then replay the strokes for the students - similar to this flash game http://www.ictgames.com/writingRepeater/

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)