Thanks. But how can I check if the user's finger was touching the screen, from beginning to end of the movement?
In a simulation that I will create, the player must pass the finger in the points distributed on the screen, obeying the sequence. I need to find a way to check if the sequence is right and if the finger was in contact with the screen all the time. Thanks.
ramones : Thank you so much! I totally forgot about "PickedCount. Happy new year!
I've 10 text instances and 10 sprites. I need to verify if all text instances are overlapping the correct sprite. When an instance overlap the correct sprite, I change the boolean variable from "false" to "true". Now I need to know if the variable of all text instances are true. Thanks for any help.
It's not necessary to sum theses values.
Use a variable to store the seconds
var timeSecondsRun
right arrow key pressed => add 1 to timeSecondsRun
every 1 seconds
Develop games in your browser. Powerful, performant & highly capable.
Aphrodite
I did it, but only worked after I change the "Fullscreen in browser" option to "Off". Thanks anyway.
I tried:
set canvas size to canvasW = canvasW*1.10 / canvasY = canvasY*1.10[/code:1z3e1fl9] But not worked like I need. The screen moves to the left when reduced.
Anyone knows how to use percentage? I would like to increment/decrement values using percentage to zoom in/out the screen.
hundredfold: Thanks for the link. I'll check it.
Aphrodite: Thank you. I'm already trying something with the "canvas size". Thanks for the suggestion about "scale layout" too. A question: Could I use percentage with "canvas size"?
Hi hundredfold
I just want to zoom (in/out) the entire screen without change the game assets. Something like browser>request fullscreen, but zooming gradually.
And about the script? I cannot apply it or something like it on the page for this purpose?
Could I use a script or something else to zoom in/zoom out the entire screen gradually? Thanks.
<div class="toolbar" style="display: block; width: 940px; height: 50px;"> <img id="zoomin" alt="zoomin" src="./media/toolbar_zoomin.svg" style="width: 30px; bottom: 0px; left: 0px; padding-top: 10px;"> <img id="zoomout" alt="zoomout" src="./media/toolbar_zoomout.svg" style="width: 30px; bottom: 0px; left: 0px; padding-top: 10px;"> </div>[/code:nqhsn06n]
korbaach
I did some experimenting with your example and simplified it, using just the touch event instead of including the sprite. I am grateful for your suggestion, without it would not have come to this solution.
Member since 29 Oct, 2012