Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How do i add accuracy into a rythym game?
- Mr_Woomy
- Scratcher
500+ posts
How do i add accuracy into a rythym game?
Once again i ask for support
- Vaibhs11
- Scratcher
1000+ posts
How do i add accuracy into a rythym game?
forever
if <key [... v] pressed?> then
if <(distance to [... arrow v]) < (distance between arrow sprites::#969696)> then
change [accuracy v] by (((distance to [... arrow v]) - (5)) * (-1))//change the 5 to 0 if you want 100% accuracy
end
wait until <not <touching [... v] ?>>
end
if <key [... v] pressed?> then
...
end
...
end
Last edited by Vaibhs11 (Aug. 23, 2021 04:49:42)
- Mr_Woomy
- Scratcher
500+ posts
How do i add accuracy into a rythym game?
Where do i find the distance between arrow sprites?forever
if <key [... v] pressed?> then
if <(distance to [... arrow v]) < (distance between arrow sprites::#969696)> then
change [accuracy v] by (((distance to [... arrow v]) - (5)) * (-1))//change the 5 to 0 if you want 100% accuracy
end
wait until <not <touching [... v] ?>>
end
if <key [... v] pressed?> then
...
end
...
end
- Mr_Woomy
- Scratcher
500+ posts
How do i add accuracy into a rythym game?
Als
Also do i put this on the arrow you hit as in the moving ones or the other not moving oneforever
if <key [... v] pressed?> then
if <(distance to [... arrow v]) < (distance between arrow sprites::#969696)> then
change [accuracy v] by (((distance to [... arrow v]) - (5)) * (-1))//change the 5 to 0 if you want 100% accuracy
end
wait until <not <touching [... v] ?>>
end
if <key [... v] pressed?> then
...
end
...
end
- griefercube
- Scratcher
500+ posts
How do i add accuracy into a rythym game?
on accuracy do you mean arrow keys hitting the top when the note plays or how close the arrow keys are to the top?
Last edited by griefercube (Aug. 23, 2021 05:57:33)
sometimes, you just have to change a way of thinking to solve a problem. -griefercube
|other projects■how I made the banner■animated thumbnails?■i’m on wiki!■Cubey Mines|
|other projects■how I made the banner■animated thumbnails?■i’m on wiki!■Cubey Mines|
Last edited by griefercube (32th Undecimber, XXXX)
https://turbowarp.org/563693837/editor (something i did a while back don’t worry it’s for the banner)
list of working bbcodes:
[color=]
[scratchblocks]
[url=]
[img]
[center]
[code]
[code=]
[list]
[quote]
[b]
[i]
[u]
[s]
[big]
[small]
[p]
[wiki]
[google]
- Vaibhs11
- Scratcher
1000+ posts
How do i add accuracy into a rythym game?
moving ones. I have programmed it so that long notes also work. But put the center point on the top of both moving arrows and long notes AlsAlso do i put this on the arrow you hit as in the moving ones or the other not moving oneforever
if <key [... v] pressed?> then
if <(distance to [... arrow v]) < (distance between arrow sprites::#969696)> then
change [accuracy v] by (((distance to [... arrow v]) - (5)) * (-1))//change the 5 to 0 if you want 100% accuracy
end
wait until <not <touching [... v] ?>>
end
if <key [... v] pressed?> then
...
end
...
end
- Vaibhs11
- Scratcher
1000+ posts
How do i add accuracy into a rythym game?
if the arrows are evenly spaced, go to one arrow sprite and runWhere do i find the distance between arrow sprites?forever
if <key [... v] pressed?> then
if <(distance to [... arrow v]) < (distance between arrow sprites::#969696)> then
change [accuracy v] by (((distance to [... arrow v]) - (5)) * (-1))//change the 5 to 0 if you want 100% accuracy
end
wait until <not <touching [... v] ?>>
end
if <key [... v] pressed?> then
...
end
...
end
(distance to [an arrow sprite right next to the arrow you're running this on v])
- Discussion Forums
- » Help with Scripts
- » How do i add accuracy into a rythym game?