Discuss Scratch

Koamodo975
Scratcher
500+ posts

Halp required: Cometstrike- 2p Fast-Paced Versus Fighter

Yo, wassup Scratchers. You see, I'm working on a big project, a chaotic, 2P DBZ-inspired fighting game, and I need some help with the scripts. These are the things I need help with here(bold means that this is a primary problem):

-I honestly need a better physics system ya'll, this one don't work realistically enough and as the game has a nice amount of physics involved, this'll need to be resolved, preferably before the rest. If the nothing else, I'll use what I've got, but it'll look really sucky. Nothing too complicated since I have set hitboxes, just something to give more realistic collisions and velocity.


-In the game, when a character moves away from another character, I want everything to zoom out, shrinking everything and moving it correspondingly. Anyone ever done this before? still unfixed the latest try's still glitching out

-Like I said before, my game's gonna be DBZ-inspired, so that means ki attacks. How do I code an energy wave that extends as you shoot, but isn't made with costumes or clones? The whole beam needs to be able to damage the opponent as well, so keep that in mind. Solved Unsolved, I forgot the way I was gonna do it, and the person that helped me delet'd the project
Resolved by yours truly
-This one's pretty simple: Does anyone know how to code projectiles that arc towards the opponent, like a halfway boomerang? What I mean is that the projectile locks onto the opponents position, then fires off in a random direction (within a range of deviations) and arcs towards the opponent, staying locked for a short amount of time after firing. possibly fixed, gotta test it later on in development

-How do I create a screenshake effect? For transformations and stuff.

-I also need to know how to break Scratch's size limit, for a certain move when it's fired up close.
solved, I figured out I just need to switch to a blank costume, change the size, then switch back to the old costume.

-In the game, when a projectile is fired, I want it to create an explosive effect, but it constantly ‘damages’ when I try to do this.(In the base project, the ‘ow’ made by the placeholder is the damage placeholder). I'm using clones for the blasts, and making them expand and fade on impact, but there's constant damage until it disappears. Has anyone done this?

-One last thing: How do I check to make sure that a key has been released since the last time it was pressed? I need this for the attacks and the jump button, so that you have to click the button repeatedly to jump or strike instead of just holding. This can't use the ‘wait until <>’ block, either.

Thanks for taking the time to read this. You won't regret it when I release the game!

Last edited by Koamodo975 (May 30, 2024 16:59:52)


“If a tree falls in the forest, and nobody hears the sound, did it really ever happen at all?
Did it really ever happen at all…?”
But… what about the bugs, and birds, and squirrels and rabbits and foxes and…
-Koamodo975, sometime in 2023
(Select any part of my siggy and shift+↓ to see more)
define Koamodo975
Ko-a-mo-do-9-7-5
/koamowdoh975/
noun
A very very epic guy
Similar: (Amazing) (Magnificent) (High-quality coder) (Aspiring Kevin Hart)

Hang around on the forums sometimes, try and make games without getting sidetracked.
ma33-ma
Scratcher
100+ posts

Halp required: Cometstrike- 2p Fast-Paced Versus Fighter

FOR YOUR FIRST PROBLEM HERE IS WHAT I OFFER[scratchblock
s]
forever
set size to (((distance maxi) - (distance to [other sprite v]))v]) %
if <[ditance maxi] < (distance to [other sprite v])> then
point towards [other sprite v]
move (10) steps
end
end

imagine ::motion
program ::sensing
share ::operators
mais c pas du tt orgiginal comme signature ça
ma33-ma
Scratcher
100+ posts

Halp required: Cometstrike- 2p Fast-Paced Versus Fighter

I'M SORRY I'M NOT VERY GOOD AT SCRATCH BLOCKS

imagine ::motion
program ::sensing
share ::operators
mais c pas du tt orgiginal comme signature ça
ma33-ma
Scratcher
100+ posts

Halp required: Cometstrike- 2p Fast-Paced Versus Fighter

pour le second probleme utilisez un dégradé dans le costume du sprite (un nouveau enfin je crois) fait le s'agranrire
j'ai fais comme ça pour les boucliers de ce jeu
(c'etais au tous debut)

imagine ::motion
program ::sensing
share ::operators
mais c pas du tt orgiginal comme signature ça
ma33-ma
Scratcher
100+ posts

Halp required: Cometstrike- 2p Fast-Paced Versus Fighter

for the second problem use a gradient in the costume of the sprite (a new one finally I believe) makes it bigger
I did like this for the shields of this game
(it was at the very beginning)

imagine ::motion
program ::sensing
share ::operators
mais c pas du tt orgiginal comme signature ça
Koamodo975
Scratcher
500+ posts

Halp required: Cometstrike- 2p Fast-Paced Versus Fighter

ma33-ma wrote:

for the second problem use a gradient in the costume of the sprite (a new one finally I believe) makes it bigger
I did like this for the shields of this game
(it was at the very beginning)
I'm not really sure what you mean. Could you elaborate?

“If a tree falls in the forest, and nobody hears the sound, did it really ever happen at all?
Did it really ever happen at all…?”
But… what about the bugs, and birds, and squirrels and rabbits and foxes and…
-Koamodo975, sometime in 2023
(Select any part of my siggy and shift+↓ to see more)
define Koamodo975
Ko-a-mo-do-9-7-5
/koamowdoh975/
noun
A very very epic guy
Similar: (Amazing) (Magnificent) (High-quality coder) (Aspiring Kevin Hart)

Hang around on the forums sometimes, try and make games without getting sidetracked.
ma33-ma
Scratcher
100+ posts

Halp required: Cometstrike- 2p Fast-Paced Versus Fighter

for the last problem use this

repeat until <touching [enemie v] ?>
set [dir1 v] to (direction)
point towards [enemie v]
set [dir v] to (direction)
point in direction (((dir) + (dir1)) / (2)
move (10) steps
end

imagine ::motion
program ::sensing
share ::operators
mais c pas du tt orgiginal comme signature ça
Koamodo975
Scratcher
500+ posts

Halp required: Cometstrike- 2p Fast-Paced Versus Fighter

ma33-ma wrote:

for the last problem use this

repeat until <touching [enemie v] ?>
set [dir1 v] to (direction)
point towards [enemie v]
set [dir v] to (direction)
point in direction (((dir) + (dir1)) / (2)
move (10) steps
end
Thanks!

“If a tree falls in the forest, and nobody hears the sound, did it really ever happen at all?
Did it really ever happen at all…?”
But… what about the bugs, and birds, and squirrels and rabbits and foxes and…
-Koamodo975, sometime in 2023
(Select any part of my siggy and shift+↓ to see more)
define Koamodo975
Ko-a-mo-do-9-7-5
/koamowdoh975/
noun
A very very epic guy
Similar: (Amazing) (Magnificent) (High-quality coder) (Aspiring Kevin Hart)

Hang around on the forums sometimes, try and make games without getting sidetracked.
Koamodo975
Scratcher
500+ posts

Halp required: Cometstrike- 2p Fast-Paced Versus Fighter

Gonna bump this 'cause I still need halp

“If a tree falls in the forest, and nobody hears the sound, did it really ever happen at all?
Did it really ever happen at all…?”
But… what about the bugs, and birds, and squirrels and rabbits and foxes and…
-Koamodo975, sometime in 2023
(Select any part of my siggy and shift+↓ to see more)
define Koamodo975
Ko-a-mo-do-9-7-5
/koamowdoh975/
noun
A very very epic guy
Similar: (Amazing) (Magnificent) (High-quality coder) (Aspiring Kevin Hart)

Hang around on the forums sometimes, try and make games without getting sidetracked.
Spentinium
Scratcher
100+ posts

Halp required: Cometstrike- 2p Fast-Paced Versus Fighter

For the first one, did you implement zooming and can you move the camera? Just wondering.

Also, are there going to be up to 2 players or any amount of players?

Last edited by Spentinium (July 18, 2023 21:10:40)


do not ask why i am here
NeonG4
Scratcher
1000+ posts

Halp required: Cometstrike- 2p Fast-Paced Versus Fighter

Koamodo975 wrote:

Yo, wassup Scratchers. You see, I'm working on a big project, a DBZ-inspired fighting game, and I need some help with the scripts. These are the things I need help with here:
-In the game, when a character moves away from another character, I want the characters to get smaller(as if the screen is zooming out). If the zoom reaches it's max and a character is still moving back, the other character moves forward. Anyone ever done this before?
-Like I said before, my game's gonna be DBZ-inspired, so that means ki attacks. How do I code an energy wave that extends as you shoot, but isn't made with costumes or clones? The whole beam needs to be able to damage the opponent as well, so keep that in mind.
-This one's pretty simple: Does anyone know how to code projectiles that curve at the opponent, like a missile with horrible aiming?
-How do I create a screenshake effect? For transformations and stuff.

Thanks for taking the time to read this. You won't regret it when I release the game!
For your second problem, you could use the pen extension, and have data storing important infromation.

Visit my shop!
Be high contrast
Hi! I'm NeonG4! I help on the HWS forum, create lame projects, and give advice.
My advice: Read this => https://en.scratch-wiki.info/wiki/User:Jvvg/Essays/Some_thoughts_on_the_forums
ROYGBIV (Rainbow text)



Sigs can go on for a while lol


Hi
when green flag clicked
set [move (10) steps] to [10]
think [move (10) steps]



Golly gee, what if I say something important like: I'm making minecraft in scratch! Follow me or I'll steal your ovens' fans' cabinets' glass. Or just a glass from your cabinet next to your oven fan. Do ovens have fans? Maybe its a stove fan, idk.






















































































]

Generation 3: The first time you see this, copy and paste it on top of your signature in the Scratch forums, and increase the generation by 1. Social experiment.

Never gonna give you up, never gonna let you down.
You didn't learn.
ma33-ma
Scratcher
100+ posts

Halp required: Cometstrike- 2p Fast-Paced Versus Fighter

Koamodo975 wrote:

ma33-ma wrote:

for the second problem use a gradient in the costume of the sprite (a new one finally I believe) makes it bigger
I did like this for the shields of this game
(it was at the very beginning)
I'm not really sure what you mean. Could you elaborate?
LOOK AT THIS PROJECT

imagine ::motion
program ::sensing
share ::operators
mais c pas du tt orgiginal comme signature ça
Koamodo975
Scratcher
500+ posts

Halp required: Cometstrike- 2p Fast-Paced Versus Fighter

ma33-ma wrote:

Koamodo975 wrote:

ma33-ma wrote:

for the second problem use a gradient in the costume of the sprite (a new one finally I believe) makes it bigger
I did like this for the shields of this game
(it was at the very beginning)
I'm not really sure what you mean. Could you elaborate?
LOOK AT THIS PROJECT
AGH I meant energy BEAM

“If a tree falls in the forest, and nobody hears the sound, did it really ever happen at all?
Did it really ever happen at all…?”
But… what about the bugs, and birds, and squirrels and rabbits and foxes and…
-Koamodo975, sometime in 2023
(Select any part of my siggy and shift+↓ to see more)
define Koamodo975
Ko-a-mo-do-9-7-5
/koamowdoh975/
noun
A very very epic guy
Similar: (Amazing) (Magnificent) (High-quality coder) (Aspiring Kevin Hart)

Hang around on the forums sometimes, try and make games without getting sidetracked.
ma33-ma
Scratcher
100+ posts

Halp required: Cometstrike- 2p Fast-Paced Versus Fighter

LIKE THAT?

Last edited by ma33-ma (July 19, 2023 21:37:49)


imagine ::motion
program ::sensing
share ::operators
mais c pas du tt orgiginal comme signature ça
Koamodo975
Scratcher
500+ posts

Halp required: Cometstrike- 2p Fast-Paced Versus Fighter

ma33-ma wrote:

LIKE THAT?
Yes! I think I've finally got the beam part down, thanks for your help.

“If a tree falls in the forest, and nobody hears the sound, did it really ever happen at all?
Did it really ever happen at all…?”
But… what about the bugs, and birds, and squirrels and rabbits and foxes and…
-Koamodo975, sometime in 2023
(Select any part of my siggy and shift+↓ to see more)
define Koamodo975
Ko-a-mo-do-9-7-5
/koamowdoh975/
noun
A very very epic guy
Similar: (Amazing) (Magnificent) (High-quality coder) (Aspiring Kevin Hart)

Hang around on the forums sometimes, try and make games without getting sidetracked.
NeonG4
Scratcher
1000+ posts

Halp required: Cometstrike- 2p Fast-Paced Versus Fighter

Koamodo975 wrote:

ma33-ma wrote:

LIKE THAT?
Yes! I think I've finally got the beam part down, thanks for your help.
It looks like your first and second problems are solved. For a screenshake, I'm unsure. However, I believe griffpatch's space shooter game has a section on it! https://youtu.be/RKdXM3x-jEo?t=1060

Arc projectiles. Could you explain yourself further?

Visit my shop!
Be high contrast
Hi! I'm NeonG4! I help on the HWS forum, create lame projects, and give advice.
My advice: Read this => https://en.scratch-wiki.info/wiki/User:Jvvg/Essays/Some_thoughts_on_the_forums
ROYGBIV (Rainbow text)



Sigs can go on for a while lol


Hi
when green flag clicked
set [move (10) steps] to [10]
think [move (10) steps]



Golly gee, what if I say something important like: I'm making minecraft in scratch! Follow me or I'll steal your ovens' fans' cabinets' glass. Or just a glass from your cabinet next to your oven fan. Do ovens have fans? Maybe its a stove fan, idk.






















































































]

Generation 3: The first time you see this, copy and paste it on top of your signature in the Scratch forums, and increase the generation by 1. Social experiment.

Never gonna give you up, never gonna let you down.
You didn't learn.
Koamodo975
Scratcher
500+ posts

Halp required: Cometstrike- 2p Fast-Paced Versus Fighter

NeonG4 wrote:

Koamodo975 wrote:

ma33-ma wrote:

LIKE THAT?
Yes! I think I've finally got the beam part down, thanks for your help.
It looks like your first and second problems are solved. For a screenshake, I'm unsure. However, I believe griffpatch's space shooter game has a section on it! https://youtu.be/RKdXM3x-jEo?t=1060

Arc projectiles. Could you explain yourself further?
I mean instead of the projectile going straight towards the target, it aims at an angle and then curves toward the target. For example, if the target is at 0 degrees relative to the character, the projectile would aim at, say, -30 degrees, then curve around to the opponent. Sorta like a boomerang that doesn't come back.

“If a tree falls in the forest, and nobody hears the sound, did it really ever happen at all?
Did it really ever happen at all…?”
But… what about the bugs, and birds, and squirrels and rabbits and foxes and…
-Koamodo975, sometime in 2023
(Select any part of my siggy and shift+↓ to see more)
define Koamodo975
Ko-a-mo-do-9-7-5
/koamowdoh975/
noun
A very very epic guy
Similar: (Amazing) (Magnificent) (High-quality coder) (Aspiring Kevin Hart)

Hang around on the forums sometimes, try and make games without getting sidetracked.
Koamodo975
Scratcher
500+ posts

Halp required: Cometstrike- 2p Fast-Paced Versus Fighter

Also, the first one isn't solved, ma33-ma's solution makes the characters too big/too small.

“If a tree falls in the forest, and nobody hears the sound, did it really ever happen at all?
Did it really ever happen at all…?”
But… what about the bugs, and birds, and squirrels and rabbits and foxes and…
-Koamodo975, sometime in 2023
(Select any part of my siggy and shift+↓ to see more)
define Koamodo975
Ko-a-mo-do-9-7-5
/koamowdoh975/
noun
A very very epic guy
Similar: (Amazing) (Magnificent) (High-quality coder) (Aspiring Kevin Hart)

Hang around on the forums sometimes, try and make games without getting sidetracked.
Koamodo975
Scratcher
500+ posts

Halp required: Cometstrike- 2p Fast-Paced Versus Fighter

Spentinium wrote:

For the first one, did you implement zooming and can you move the camera? Just wondering.

Also, are there going to be up to 2 players or any amount of players?
Up to two players only, and I haven't made any camera movement. Would probably help tho!

“If a tree falls in the forest, and nobody hears the sound, did it really ever happen at all?
Did it really ever happen at all…?”
But… what about the bugs, and birds, and squirrels and rabbits and foxes and…
-Koamodo975, sometime in 2023
(Select any part of my siggy and shift+↓ to see more)
define Koamodo975
Ko-a-mo-do-9-7-5
/koamowdoh975/
noun
A very very epic guy
Similar: (Amazing) (Magnificent) (High-quality coder) (Aspiring Kevin Hart)

Hang around on the forums sometimes, try and make games without getting sidetracked.
Koamodo975
Scratcher
500+ posts

Halp required: Cometstrike- 2p Fast-Paced Versus Fighter

Bilatedly
Upping
My topic using this
Post

Last edited by Koamodo975 (July 26, 2023 17:03:11)


“If a tree falls in the forest, and nobody hears the sound, did it really ever happen at all?
Did it really ever happen at all…?”
But… what about the bugs, and birds, and squirrels and rabbits and foxes and…
-Koamodo975, sometime in 2023
(Select any part of my siggy and shift+↓ to see more)
define Koamodo975
Ko-a-mo-do-9-7-5
/koamowdoh975/
noun
A very very epic guy
Similar: (Amazing) (Magnificent) (High-quality coder) (Aspiring Kevin Hart)

Hang around on the forums sometimes, try and make games without getting sidetracked.

Powered by DjangoBB