Discuss Scratch

frencoepic2731
Scratcher
68 posts

Can anyone make my game mobile freindly?

i made this game, its a platformer, and im sure there are some players that want it to be mobile, can any one turn this https://scratch-mit-edu.ezproxyberklee.flo.org/projects/1133422348 mobile? thanks!
michaeljackson1365
Scratcher
500+ posts

Can anyone make my game mobile freindly?

Left/right buttons and jump buttons can be enough to make this mobile friendly (although asking if on mobile is usually the way to check if you're on mobile)
frencoepic2731
Scratcher
68 posts

Can anyone make my game mobile freindly?

Nah im thinking joysticks cause i found out that i can only hold one at a time or the other code wont work
NoUsername-King
Scratcher
27 posts

Can anyone make my game mobile freindly?

If you don't want to go through the work of adding a joystick, you can simply use the “MouseX > 0 and Mouse down” blocks for right movement and similar for left and jumping. It allows you to move by holding your finger on the rights side of the screen to move right and vise versa for left. If you hold your mouse high enough on the screen you will jump.
frencoepic2731
Scratcher
68 posts

Can anyone make my game mobile freindly?

can you use the block tool thing (this) –>
move () steps

tomake what the script would look like?
gaelover
Scratcher
12 posts

Can anyone make my game mobile freindly?

just playing around :\
wait 1 secswhen green flag clicked
forever
repeat until <> < you are [ following me>
ask did you follow me?
if <> then
< following me? = yes >
say thank for (2) secs you! Follow me again!
end
[/list] and wait
end
end
NoUsername-King
Scratcher
27 posts

Can anyone make my game mobile freindly?

This is what the code would look like. You may have to add the condition in an ‘or’ block to you existing movement code.
when green flag clicked
forever
if <<(mouse x) > [0]> and <mouse down>> then
move right code
end
if <<(mouse x) < [0]> and <mouse down>> then
move left code
end
if <<(mouse y) > [80]> and <mouse down>> then
jump code
end
end
frencoepic2731
Scratcher
68 posts

Can anyone make my game mobile freindly?

it worked, tho the jumping was a bit janky so i added a button, thanks anyway!
NotK3ndricAltAgain
Scratcher
100+ posts

Can anyone make my game mobile freindly?

gaelover wrote:

just playing around :\
-snip-
Please test Scratchblocks in the testing topic.

Powered by DjangoBB