Drawing Tool 2.0

user_avatar Made by: MePlayMan

PROJECT DESCRIPTION

Share this project:

This is my new and improved version of Drawing Tool. This new version makes it easier and cleaner to make drawings, and it is also easier for me to add updates too. Thanks to the people offering help to me in the comments.

VERSION 1.0

Last Updated: September 21, 2022

COMMENTS

YOU MUST BE SIGNED IN TO LEAVE A COMMENT

July 03, 2016

You could do this by moving a pointer and when the pointer collides with a cell/box it then colours it.

June 30, 2016

I suggest making a tool that allows you to drag your finger instead of touching every pixel.

June 30, 2016

I agree. But is that even possible? I thought "started touching" would allow drag-drawing.

June 30, 2016

I don't think started touching will work.....I tried the dragged finger behavior but couldn't get it to work. I got it to work with a small empty object that was drag and drop and I used the collide behavior....but that's not the best way t do it. I guess it's a question for hyper pad!

June 30, 2016

Would swiping work? Maybe I will try that and see if it works.

June 30, 2016

Swiping won't work as far as I know, cuz you'd have to swipe each pixel.

June 30, 2016

https://www.hyperpad.com/projects/g1m2rxeh Maybe you can figure out with this project

June 30, 2016

Try drag and drop. Drag and drop the tool and any pixel that touches the tool changes color. Also, keep perfecting the game before you make the canvas size any bigger.

June 30, 2016

Yeah I already did that and it works.

June 30, 2016

Also try while touching

June 30, 2016

I don't think that will work it you could try.

June 30, 2016

You could use an object with collisions by putting a while touching behaviour in a big object over the top of the grid with world coordinates on and move a very small object to that point, using collisions to change the colour of the grid, or you could use while touching to get the coordinates, then round them and offset/multiply them so that they match the grid, and then use a for each loop with the grid group selected to get their positions and compare with the touching coordinates. The collisions are way simpler to use though.

June 30, 2016

There is currently no behaviour to detect which object a user's finger is over while touching the screen.

June 30, 2016

Yeah I know, I did it with collisions and it works great. I think Hamed did magic link the other way you suggested, or at least somthing similar.

July 01, 2016

How about putting a large empty object over the screen (or just the drawing area). Use a while touching behavior on this object linked to a spawn on area behavior. The spawned object is your chosen colored pixel. Set the spawn area to be the x and y from the while touching behavior. I'll try to put up an example in a bit.

July 01, 2016

The only thing is that if they kept drawing eventually you would get lag from all the spawned objects. But you could make and eraser too. Also you would want the pixels to snap to a grid when they are spawned.

July 02, 2016

Yep, just tried it and it starts lagging after awhile due to all the spawned objects. As for snapping to a grid, depends on what you want. Not snapping gives smoother curved lines.

July 02, 2016

Or instead of spawning the pixel, just move an object to the place where your finger touched and have the pixels change when they collide with the object. Worked for me ;)

July 02, 2016

Yeah I did that too on a branch of the other drawing tool to see if it would work. It's probably the best way(or at least easiest) in hyperpad.