Discuss Scratch

demonicdoggo101
New Scratcher
22 posts

adding a feature to my clicker game

so i am a newer scratcher trying to make a clicker game and i want to make a cookie clicker type of thing with my first upgrade but i don't know how to make the clones spin with the main sprite and the clone can be clicked to do the upgrade, how do i prevent this?


please look at my code because i suck at explaining through text
https://scratch.mit.edu/projects/758513990/editor/

Last edited by demonicdoggo101 (Nov. 29, 2022 13:16:36)

Daffodil_alias_Daffo
Scratcher
500+ posts

adding a feature to my clicker game

demonicdoggo101 wrote:

so i am a newer scratcher trying to make a clicker game and i want to make a cookie clicker type of thing with my first upgrade but i don't know how to make the clones spin with the main sprite and the clone can be clicked to do the upgrade, how do i prevent this?


please look at my code because i suck at explaining through text
https://scratch.mit.edu/projects/758513990/editor/
I didn't really understand what you want to do and prevent from doing?

to spin the clone :
repeat until <...>
set y to (-5)
turn cw (5) degrees
end

I don't know if this is what you want, I'm having trouble translating your question
EmberStudent
Scratcher
29 posts

adding a feature to my clicker game

when green flag clicked
forever
if <mouse down?> then
if <touching [mouse pointer v] ?> then
change [upgrade v] by (1)
end
end
end

scratch isn't loading, so this isn't using your upgrade script, but you can change that

Last edited by EmberStudent (Nov. 29, 2022 14:24:03)

demonicdoggo101
New Scratcher
22 posts

adding a feature to my clicker game

EmberStudent wrote:

when green flag clicked
forever
if <mouse down?> then
if <touching [mouse pointer v] ?> then
change [upgrade v] by (1)
end
end
end

scratch isn't loading, so this isn't using your upgrade script, but you can change that
can you try again also my upgrade sprite is the first upgrade which is a dog head i wanted to make the first upgrade sprite clone itself and be around the main sprite that is to be clicked

https://scratch.mit.edu/projects/758513990/

Last edited by demonicdoggo101 (Nov. 29, 2022 14:30:49)

hummeaud000
Scratcher
28 posts

adding a feature to my clicker game

if you need a script on an inventory:

when green flag clicked                                   
forever
if <touching [ mouse pointer] ?> then
if <mouse down?> then
add ( specific item) to [list inventory]

end

end

end
when green flag clicked
forever
if <[specific item] = [1]> then
change [ what the potion does] by (5)
set [ specific item] to [0]

end

end

when [ space] key pressed
if <[ inventory] contains ( specific item) ?> then
delete ( specific item) of [list inventory]
use item deleted
end


define use item deleted
set [ specific item] to [1]

Last edited by hummeaud000 (Nov. 29, 2022 16:05:35)

Powered by DjangoBB