Discuss Scratch

TheOnionKing4000
New Scratcher
19 posts

charge shot for shooter game

when you hold down the key (x for my game) for long enough it will be a charge shot with a larger bullet costume and more damage.
Baconhaired757
Scratcher
28 posts

charge shot for shooter game

I made a project that basicly has what you want.
Some added features if you needed were base size and max charge. There are comments inside that sort of explain things.
Any questions, just ask!

Last edited by Baconhaired757 (July 22, 2023 01:43:35)

TheOnionKing4000
New Scratcher
19 posts

charge shot for shooter game

wait blocks lag the game because i use a define block actioned by a broadcast block, and for some reason the change charge variable by 1 script only changed the variable one at a time instead of gradually like yours, but its a good start to conceptualize
TheOnionKing4000
New Scratcher
19 posts

charge shot for shooter game

bump
BATTLEBOTS-BOI
Scratcher
15 posts

charge shot for shooter game

Here's some code you could use:

whenclickedforeverifkeyxpressed?thenrepeatuntilnotkeyxpressed?wait0secschangechargeby1ifcharge>valuethenfullchargeshotelsenormalshotsetchargeto0
Heyya2831
Scratcher
58 posts

charge shot for shooter game

TheOnionKing4000 wrote:

bump
why do people keep saying this whenever i look at the forums
The_king_of_nothing
Scratcher
65 posts

charge shot for shooter game

whenclickedforeverifkey spacepressed?spacethencreatecloneof

Last edited by The_king_of_nothing (July 28, 2023 01:35:51)

The_king_of_nothing
Scratcher
65 posts

charge shot for shooter game

foreverifthenkeyspacepressed?endcreatecloneofi'mnewtothescratchdiscussend

whenIstartasaclone
movestepsrepeatuntiltouchingedge?
deletethisclone

Last edited by The_king_of_nothing (July 26, 2023 06:47:51)

Skywarslord
Scratcher
100+ posts

charge shot for shooter game

Heyya2831 wrote:

TheOnionKing4000 wrote:

bump
why do people keep saying this whenever i look at the forums

It's meant to bump posts up higher so more people can see them.
follow_F4F_follow
New Scratcher
4 posts

charge shot for shooter game

foreverifthenkeypressed?createcloneofendend

The_king_of_nothing
Scratcher
65 posts

charge shot for shooter game

hello

Last edited by The_king_of_nothing (July 28, 2023 01:35:08)

The_king_of_nothing
Scratcher
65 posts

charge shot for shooter game

follow_F4F_follow wrote:

foreverifthenkeypressed?createcloneofendend

?
The_king_of_nothing
Scratcher
65 posts

charge shot for shooter game

whenclickedforeverifupthenchangeyby10ifleftthenchangexby-10ifdownthenchangeyby-10ifrightthenchangexby10easycontrolthatsimpleshootergamesuse

Last edited by The_king_of_nothing (July 28, 2023 04:53:08)

TheOnionKing4000
New Scratcher
19 posts

charge shot for shooter game

BATTLEBOTS-BOI wrote:

Here's some code you could use:

whenclickedforeverifkeyxpressed?thenrepeatuntilnotkeyxpressed?wait0secschangechargeby1ifcharge>valuethenfullchargeshotelsenormalshotsetchargeto0
still doesnt work unfortunately
TheOnionKing4000
New Scratcher
19 posts

charge shot for shooter game

bump
qwertycodechamp90411
Scratcher
100+ posts

charge shot for shooter game

whenxkeypressedresettimerwaituntilnotkeyxpressedortimer>3iftimer<3thennormalshotelsewaituntilnotkeyxpressedchargedshot
The_king_of_nothing
Scratcher
65 posts

charge shot for shooter game

ok
JacksterBobster
Scratcher
91 posts

charge shot for shooter game

It looks like there is a lot of ideas, and after looking through them, most of them have flaws that may not work. Here is my go at it:
foreverifkeyxpressed?thenchangechargeby1elseifcharge>minimumthendotheshotsetchargeto0definedotheshotsetsizetocharge%setbullet damagetominimumdamage+charge

Powered by DjangoBB