Discuss Scratch
- Discussion Forums
- » Requests
- » Helping you code
- SolingJester44
- Scratcher
18 posts
Helping you code
If you want to learn how to code more, then come on up to my coding lessons.
when green flag clicked
Last edited by SolingJester44 (Feb. 26, 2021 14:57:20)
- SmartCoolGuy
- Scratcher
100+ posts
Helping you code
ok how do i fix this glitch
when green flag clicked
forever
if <key up pressed> then
change (y variable) by (9)
set [Scroll Y] to (round (((y variable)) - ((Scroll Y))))
end
when green flag clicked
forever
position
end
define position
go to x: ((x variable))- ((Scroll X)) y: ((y variable)) - ((ScrollY))
Last edited by SmartCoolGuy (Feb. 26, 2021 16:47:47)
ignore this: asiuhdaisudhiaushdiuahsdiashdiuasdh you didnt ignore it
- SmartCoolGuy
- Scratcher
100+ posts
Helping you code
please help i am trying to make a scrolling platformer
ignore this: asiuhdaisudhiaushdiuahsdiashdiuasdh you didnt ignore it
- SolingJester44
- Scratcher
18 posts
Helping you code
Gimme some time to investigate please help i am trying to make a scrolling platformer
- SolingJester44
- Scratcher
18 posts
Helping you code
But first, tell me what project you used to learn this. please help i am trying to make a scrolling platformer
Last edited by SolingJester44 (March 1, 2021 18:12:09)
- SolingJester44
- Scratcher
18 posts
Helping you code
I can help you make a platformer if you want. ok how do i fix this glitchwhen green flag clicked
forever
if <key up pressed> then
change (y variable) by (9)
set [Scroll Y] to (round (((y variable)) - ((Scroll Y))))
endwhen green flag clicked
forever
position
enddefine position
go to x: ((x variable))- ((Scroll X)) y: ((y variable)) - ((ScrollY))
- SolingJester44
- Scratcher
18 posts
Helping you code
Or a stop detector. ok how do i fix this glitchwhen green flag clicked
forever
if <key up pressed> then
change (y variable) by (9)
set [Scroll Y] to (round (((y variable)) - ((Scroll Y))))
endwhen green flag clicked
forever
position
enddefine position
go to x: ((x variable))- ((Scroll X)) y: ((y variable)) - ((ScrollY))
- SmartCoolGuy
- Scratcher
100+ posts
Helping you code
ThanksOr a stop detector. ok how do i fix this glitchwhen green flag clicked
forever
if <key up pressed> then
change (y variable) by (9)
set [Scroll Y] to (round (((y variable)) - ((Scroll Y))))
endwhen green flag clicked
forever
position
enddefine position
go to x: ((x variable))- ((Scroll X)) y: ((y variable)) - ((ScrollY))
ignore this: asiuhdaisudhiaushdiuahsdiashdiuasdh you didnt ignore it
- SmartCoolGuy
- Scratcher
100+ posts
Helping you code
Ummm, i kinda used YoutubeBut first, tell me what project you used to learn this. please help i am trying to make a scrolling platformer
ignore this: asiuhdaisudhiaushdiuahsdiashdiuasdh you didnt ignore it
- SolingJester44
- Scratcher
18 posts
Helping you code
Use a project not youtube it works moreUmmm, i kinda used YoutubeBut first, tell me what project you used to learn this. please help i am trying to make a scrolling platformer
- SolingJester44
- Scratcher
18 posts
Helping you code
Here is how to make a stop detector:ThanksOr a stop detector. ok how do i fix this glitchwhen green flag clicked
forever
if <key up pressed> then
change (y variable) by (9)
set [Scroll Y] to (round (((y variable)) - ((Scroll Y))))
endwhen green flag clicked
forever
position
enddefine position
go to x: ((x variable))- ((Scroll X)) y: ((y variable)) - ((ScrollY))
when green flag clicked
forever
reset timer
end
when [timer] > (0.1)
Then do what you want here when the stop pressed as long as it doesn't involve a forever and
add a stop all block at the end
of this script
Last edited by SolingJester44 (March 2, 2021 14:22:30)
- SmartCoolGuy
- Scratcher
100+ posts
Helping you code
Ok thanksHere is how to make a stop detector:ThanksOr a stop detector. ok how do i fix this glitchwhen green flag clicked
forever
if <key up pressed> then
change (y variable) by (9)
set [Scroll Y] to (round (((y variable)) - ((Scroll Y))))
endwhen green flag clicked
forever
position
enddefine position
go to x: ((x variable))- ((Scroll X)) y: ((y variable)) - ((ScrollY))when green flag clicked
forever
reset timer
endwhen [timer] > (0.1)
Then do what you want here when the stop pressed as long as it doesn't involve a forever and
add a stop all block at the end
of this script
ignore this: asiuhdaisudhiaushdiuahsdiashdiuasdh you didnt ignore it
- SmartCoolGuy
- Scratcher
100+ posts
Helping you code
why? is it because you want to backpack code?Use a project not youtube it works moreUmmm, i kinda used YoutubeBut first, tell me what project you used to learn this. please help i am trying to make a scrolling platformer
ignore this: asiuhdaisudhiaushdiuahsdiashdiuasdh you didnt ignore it
- SolingJester44
- Scratcher
18 posts
Helping you code
Yea to test it outwhy? is it because you want to backpack code?Use a project not youtube it works moreUmmm, i kinda used YoutubeBut first, tell me what project you used to learn this. please help i am trying to make a scrolling platformer
- SmartCoolGuy
- Scratcher
100+ posts
Helping you code
Ok
But sorry I didnt have a projectYea to test it outwhy? is it because you want to backpack code?Use a project not youtube it works moreUmmm, i kinda used YoutubeBut first, tell me what project you used to learn this. please help i am trying to make a scrolling platformer
ignore this: asiuhdaisudhiaushdiuahsdiashdiuasdh you didnt ignore it
- SmartCoolGuy
- Scratcher
100+ posts
Helping you code
But i said the code in the chat so you could still test it out and see whats wrongYea to test it outwhy? is it because you want to backpack code?Use a project not youtube it works moreUmmm, i kinda used YoutubeBut first, tell me what project you used to learn this. please help i am trying to make a scrolling platformer
ignore this: asiuhdaisudhiaushdiuahsdiashdiuasdh you didnt ignore it
- SolingJester44
- Scratcher
18 posts
Helping you code
Making this disscussion was a bad idea.But i said the code in the chat so you could still test it out and see whats wrongYea to test it outwhy? is it because you want to backpack code?Use a project not youtube it works moreUmmm, i kinda used YoutubeBut first, tell me what project you used to learn this. please help i am trying to make a scrolling platformer
- Discussion Forums
- » Requests
- » Helping you code