Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » FNAF Scripts
- Souroko
-
Scratcher
9 posts
FNAF Scripts
so.. *INHALE* yeah… i need help with some scripts for a fnaf game… basically a advanced code and less sprites. just the title screen itself is one sprite! but everything else is just… yeah, i don't want basic… i want advanced!
- Mikael2613
-
Scratcher
11 posts
FNAF Scripts
SCRIPT FOR PLAY BUTTON:
set size to 100%
when this sprite clicked
repeat (5)
CHANGE SIZE BY 7
end
repeat (5)
CHANGE SIZE BY 5
end
repeat (5)
CHANGE SIZE BY -6
end
repeat (12)
CHANGE SIZE BY -12
end
switch costume to [empty costume]
when green flag clickedgo to front layer
set size to 100%
switch costume to [costume1]
Last edited by Mikael2613 (Dec. 18, 2023 21:56:29)
- Omega_Bear-
-
Scratcher
17 posts
FNAF Scripts
so.. *INHALE* yeah… i need help with some scripts for a fnaf game… basically a advanced code and less sprites. just the title screen itself is one sprite! but everything else is just… yeah, i don't want basic… i want advanced!
What specifically do you want to be advanced?
- Souroko
-
Scratcher
9 posts
FNAF Scripts
EVERYTHING!so.. *INHALE* yeah… i need help with some scripts for a fnaf game… basically a advanced code and less sprites. just the title screen itself is one sprite! but everything else is just… yeah, i don't want basic… i want advanced!
What specifically do you want to be advanced?
- Souroko
-
Scratcher
9 posts
FNAF Scripts
we need the link to helpthere is no link yet. just wanted to make the game with help!
- Omega_Bear-
-
Scratcher
17 posts
FNAF Scripts
so.. *INHALE* yeah… i need help with some scripts for a fnaf game… basically a advanced code and less sprites. just the title screen itself is one sprite! but everything else is just… yeah, i don't want basic… i want advanced!
This script makes the two office sprites (Foreground and Background) move at different speeds.
when I receive [Start]Foreground loop
forever
go to x: ((mouse x) * (-0.3)) y: ((mouse y) * (-0.3)
end
when I receive [Start]
forever
go to x: ((mouse x) * (-0.2)) y: ((mouse y) * (-0.2))
end
Background loop
Last edited by Omega_Bear- (Dec. 20, 2023 16:04:17)
- RethinkingVoxels
-
Scratcher
1000+ posts
FNAF Scripts
too vague. try coding it yourself then use this form for problems
- Tigerjollyyt
-
Scratcher
1 post
FNAF Scripts
Here's The Music For Your Fnaf Game
when I receive [Music Starts]
forever
play sound [ v] until done
when I receive [Games Starts]
end
stop all sounds
- Omega_Bear-
-
Scratcher
17 posts
FNAF Scripts
Here's The Music For Your Fnaf Gamewhen I receive [Music Starts]forever
play sound [ v] until done
when I receive [Games Starts]
endstop all sounds
What does the “end” mean in your script?
- Mikael2613
-
Scratcher
11 posts
FNAF Scripts
Copy this code for a fnaf game:
CODE FOR ENEMIES
CODE FOR TITLE SCREEN:
did I go too far?
CODE FOR ENEMIES
when green flag clicked
set [lives] to [5]
forever
point towards [player]
move (2) steps
if <touching [player] ?> then
change [lives] by (-1)
end
if <(lives) = [0]> then
broadcast [dead]
end
end
CODE FOR TITLE SCREEN:
when green flag clicked
hide
show
go to front
when this sprite clicked
if <<<(mouse x) > [-50]> and <(mouse x) < [50]>> and <<(mouse y) < [50]> and <(mouse y) >> -50>> then
repeat (20)
change [ghost] effect by (7.5)
end
hide
end
did I go too far?
Last edited by Mikael2613 (Feb. 9, 2024 22:52:32)
- Mikael2613
-
Scratcher
11 posts
FNAF Scripts
Here's The Music For Your Fnaf Gamewhen I receive [Music Starts]forever
play sound [ v] until done
when I receive [Games Starts]
endstop all sounds
What does the “end” mean in your script?
the end means stop all sounds tell me if I'm a bozo
- Omega_Bear-
-
Scratcher
17 posts
FNAF Scripts
Here's The Music For Your Fnaf Gamewhen I receive [Music Starts]forever
play sound [ v] until done
when I receive [Games Starts]
endstop all sounds
What does the “end” mean in your script?
the end means stop all sounds tell me if I'm a bozo
The stop all sounds part makes sense, but the “end” block is confusing. What is the “end” block ending?
- Discussion Forums
- » Help with Scripts
-
» FNAF Scripts