Discuss Scratch

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?

Vaibhs11 wrote:

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
Where do i find the distance between arrow sprites?
Mr_Woomy
Scratcher
500+ posts

How do i add accuracy into a rythym game?

Als

Vaibhs11 wrote:

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
Also do i put this on the arrow you hit as in the moving ones or the other not moving one
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 projectshow I made the banneranimated 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?

Mr_Woomy wrote:

Als

Vaibhs11 wrote:

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
Also do i put this on the arrow you hit as in the moving ones or the other not moving one
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
Vaibhs11
Scratcher
1000+ posts

How do i add accuracy into a rythym game?

Mr_Woomy wrote:

Vaibhs11 wrote:

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
Where do i find the distance between arrow sprites?
if the arrows are evenly spaced, go to one arrow sprite and run
(distance to [an arrow sprite right next to the arrow you're running this on v])

Powered by DjangoBB