Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Shot mechanic/Mecanica de tiro
- danteelfandenintendo
-
Scratcher
8 posts
Shot mechanic/Mecanica de tiro
Estoy haciendo un videojuego llamado LUB 2K24, obviamente basado en el NBA 2K.
Realmente me esta llendo muy bien, pero en el modo de juego 1 contra 1, similar a Blacktop, tengo una duda sobre como programar algo.
La mecanica de tiro.
Cuando el jugador tira, osea, cuando apreta espacio, se pueden llegar a sumar infinitos puntos si mantienes la barra espaciadora, cosa que no quiero.
Tambien, para que el juego sea un poco mas divertido, quiero que haya tanta posibilidad de errar, tanto como de meter, pero no se como hacerlo.
Aunque ahora que lo pienso podria hacer una barra de tiro, aunque no se como hacerla.
I'm making a video game called LUB 2K24, obviously based on NBA 2K.
It's really going very well for me, but in the 1v1 game mode, similar to Blacktop, I have a question about how to program something.
The shooting mechanics.
When the player shoots, that is, when he presses space, infinite points can be added if you hold the space bar, which I don't want.
Also, to make the game a little more fun, I want there to be as much chance to miss as there is to score, but I don't know how to do it.
Although now that I think about it I could make a shot-meter, although I don't know how to make it.
It's translated by google, sorry if there is any mistake.
Realmente me esta llendo muy bien, pero en el modo de juego 1 contra 1, similar a Blacktop, tengo una duda sobre como programar algo.
La mecanica de tiro.
Cuando el jugador tira, osea, cuando apreta espacio, se pueden llegar a sumar infinitos puntos si mantienes la barra espaciadora, cosa que no quiero.
Tambien, para que el juego sea un poco mas divertido, quiero que haya tanta posibilidad de errar, tanto como de meter, pero no se como hacerlo.
Aunque ahora que lo pienso podria hacer una barra de tiro, aunque no se como hacerla.
I'm making a video game called LUB 2K24, obviously based on NBA 2K.
It's really going very well for me, but in the 1v1 game mode, similar to Blacktop, I have a question about how to program something.
The shooting mechanics.
When the player shoots, that is, when he presses space, infinite points can be added if you hold the space bar, which I don't want.
Also, to make the game a little more fun, I want there to be as much chance to miss as there is to score, but I don't know how to do it.
Although now that I think about it I could make a shot-meter, although I don't know how to make it.
It's translated by google, sorry if there is any mistake.
- Jlerpy
-
Scratcher
1000+ posts
Shot mechanic/Mecanica de tiro
How do you want the shot meter to work? (I haven't played NBA2k24) And what do you want to effect the chances of a shot scoring?
- chittadini_dan2023
-
Scratcher
7 posts
Shot mechanic/Mecanica de tiro
You could have a drag-and-aim for the player to aim, and an oscillating meter which determines the force of the shot when the player releases.
Here's a meter I made for a simple 100 block challenge game, Long Jump
Thank you very much for answering my question. I will see your version and try to implement it to my game. If there's any question from my part i will ask you. Again, thanks.
- chittadini_dan2023
-
Scratcher
7 posts
Shot mechanic/Mecanica de tiro
You could have a drag-and-aim for the player to aim, and an oscillating meter which determines the force of the shot when the player releases.
Here's a meter I made for a simple 100 block challenge game, Long Jump
Thank you very much for answering my question. I will see your version and try to implement it to my game. If there's any question from my part i will ask you. Again, thanks.
Sorry, i'm danteelfandenintendo from an alt
- chittadini_dan2023
-
Scratcher
7 posts
Shot mechanic/Mecanica de tiro
After seeing your game, i think the idea is good, but i don't know how i could, like, um… put that on a basketball game
- chittadini_dan2023
-
Scratcher
7 posts
Shot mechanic/Mecanica de tiro
How do you want the shot meter to work? (I haven't played NBA2k24) And what do you want to effect the chances of a shot scoring?While it works, on any way, the best way could be like some other 2k did, but considering you didnt play it, i'll try to introduce you.
I could be a circle, like this one: https://www.nba-live.com/wp-content/uploads/2017/02/nba2k17_jumpshot_prostick.png it works like this, if you stop pressing the shooting button too early it will miss, if you do it a little bit early there's a little chance to go in, but if its green its an obvious point.
or, the option i would prefer is this one, it works like the image says:
https://pm1.aminoapps.com/6570/b213b0d2435c597c6a93b0116760445bf1da00d9_hq.jpg
Thanks for answering, and i'm also danteelfandenintendo from an alt.
Last edited by chittadini_dan2023 (Sept. 20, 2023 00:47:34)
- chittadini_dan2023
-
Scratcher
7 posts
Shot mechanic/Mecanica de tiro
https://scratch.mit.edu/projects/895980180/
Here's a draft approach.when green flag clicked
say [it looks awesome]
Last edited by chittadini_dan2023 (Sept. 25, 2023 17:28:54)
- Discussion Forums
- » Help with Scripts
-
» Shot mechanic/Mecanica de tiro