Discuss Scratch

UnknownHippo
Scratcher
5 posts

Scrolling | A Game

Hello Friends.
I am making a new game.
It’s a scrolling platformer!
I will put updates here and you can post stuff related to the game.
Happy Scratching
cosmosaura
Scratch Team
1000+ posts

Scrolling | A Game

I'll move this over to the Things I'm Making and Creating section for you - that's a better fit for this kind of topic
UnknownHippo
Scratcher
5 posts

Scrolling | A Game

cosmosaura wrote:

I'll move this over to the Things I'm Making and Creating section for you - that's a better fit for this kind of topic
Thanks
UnknownHippo
Scratcher
5 posts

Scrolling | A Game

I need help
The player is moving slow
Code:
if <<key [left arrow v] pressed?> and <touching [Ground v] ?>> then
walking (-90) (4)
end
if <<key [right arrow v] pressed?> and <touching [Ground v] ?>> then
walking (90) (-4)
end
define walking (D) (S)
point in direction (D)
change [x v] by (S)
set [ground? v] to [0]
repeat until <<(ground?) = [8]> or <not <touching [Ground v] ?>>>
change [y v] by (-1)
change [ground? v] by (1)
end
if <(ground) = [8]> then
change [x v] by ((0) + (S))
change [y v] by ((0) + (ground?))
end
UnknownHippo
Scratcher
5 posts

Scrolling | A Game

-

Last edited by UnknownHippo (March 14, 2023 13:55:41)

FoxEdStudios
Scratcher
1 post

Scrolling | A Game

UnknownHippo wrote:

I need help
The player is moving slow
Code:
if <<key [left arrow v] pressed?> and <touching [Ground v] ?>> then
walking (-90) (4)
end
if <<key [right arrow v] pressed?> and <touching [Ground v] ?>> then
walking (90) (-4)
end
define walking (D) (S)
point in direction (D)
change [x v] by (S)
set [ground? v] to [0]
repeat until <<(ground?) = [8]> or <not <touching [Ground v] ?>>>
change [y v] by (-1)
change [ground? v] by (1)
end
if <(ground) = [8]> then
change [x v] by ((0) + (S))
change [y v] by ((0) + (ground?))
end
Try turning on Run Without Screen Refresh
UnknownHippo
Scratcher
5 posts

Scrolling | A Game

FoxEdStudios wrote:

UnknownHippo wrote:

I need help
The player is moving slow
Code:
if <<key [left arrow v] pressed?> and <touching [Ground v] ?>> then
walking (-90) (4)
end
if <<key [right arrow v] pressed?> and <touching [Ground v] ?>> then
walking (90) (-4)
end
define walking (D) (S)
point in direction (D)
change [x v] by (S)
set [ground? v] to [0]
repeat until <<(ground?) = [8]> or <not <touching [Ground v] ?>>>
change [y v] by (-1)
change [ground? v] by (1)
end
if <(ground) = [8]> then
change [x v] by ((0) + (S))
change [y v] by ((0) + (ground?))
end
Try turning on Run Without Screen Refresh
Thanks

Powered by DjangoBB