Discuss Scratch

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!
theflyingmence
Scratcher
73 posts

FNAF Scripts

we need the link to help
Mikael2613
Scratcher
11 posts

FNAF Scripts

SCRIPT FOR PLAY BUTTON:
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 clicked
go to front layer
set size to 100%
switch costume to [costume1]

Last edited by Mikael2613 (Dec. 18, 2023 21:56:29)

Nada_4
Scratcher
22 posts

FNAF Scripts

You can make lost of costumes in one sprite and use clones
Omega_Bear-
Scratcher
17 posts

FNAF Scripts

Souroko wrote:

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

Omega_Bear- wrote:

Souroko wrote:

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?
EVERYTHING!
Souroko
Scratcher
9 posts

FNAF Scripts

theflyingmence wrote:

we need the link to help
there is no link yet. just wanted to make the game with help!
Omega_Bear-
Scratcher
17 posts

FNAF Scripts

Souroko wrote:

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]
forever
go to x: ((mouse x) * (-0.3)) y: ((mouse y) * (-0.3)
end
Foreground loop

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

Tigerjollyyt wrote:

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

What does the “end” mean in your script?
Mikael2613
Scratcher
11 posts

FNAF Scripts

Copy this code for a fnaf game:

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

Omega_Bear- wrote:

Tigerjollyyt wrote:

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

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

Mikael2613 wrote:

Omega_Bear- wrote:

Tigerjollyyt wrote:

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

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?

Powered by DjangoBB