Discuss Scratch

tagnindesbois2
Scratcher
16 posts

ASTEROID GAME: GOLD ASTEROIDS DAMAGE PLAYER (BUG)

Project link : https://scratch.mit.edu/projects/1114156693

<iframe src="https://scratch.mit.edu/projects/1114156693/embed“ allowtransparency=”true“ width=”485“ height=”402“ frameborder=”0“ scrolling=”no“ allowfullscreen></iframe>

How to play the game : avoid the normal asteroids, and gain money with the gold asteroids (yellow costume). to move around press the space bar and aim with your mouse. you can zoom in and out with the ”c“ and ”v” key

How the project works : the Spawn sprite is responsable for adding to the list the different asteroids. there are 3 types of asteroids; normal (red skin), big_gold(yellow skin), and small_gold (yellow skin)
the Show sprite manages the stamping of the items in the list and the interactions when ther is a collision with the player.
when the normal asteroids impact the player he takes damage, when the gold asteroids impact the player he should gain gold.


Project bug: the big gold asteroids spawned by
definespawnifitem4ofasteroid timer0thenspawnbiggoldasteroid

if the big gold asteroid impact the player he takes damage not normal and gains coins normal he also spawnes small gold asteroids aroud him in a delay normal some of the small asteroids give coins normal but some also damage the player not normal

PLEASE HELP ME

I put comment in the script to explain what each of them does

thanks in advance.
TheSmileyMan1
Scratcher
10 posts

ASTEROID GAME: GOLD ASTEROIDS DAMAGE PLAYER (BUG)

um I think I can help les see ur protect
TheSmileyMan1
Scratcher
10 posts

ASTEROID GAME: GOLD ASTEROIDS DAMAGE PLAYER (BUG)

I dont get why it is red
TheSmileyMan1
Scratcher
10 posts

ASTEROID GAME: GOLD ASTEROIDS DAMAGE PLAYER (BUG)

definespawnifitem4ofasteroid timer0thenspawnbiggoldasteroid
I don't understand
TheSmileyMan1
Scratcher
10 posts

ASTEROID GAME: GOLD ASTEROIDS DAMAGE PLAYER (BUG)

I saw there was a little bit of brown on the gold asteroid
And another bug is that in the federal end I get blue coins and a lot of them
Whyyyy
what do I use the coins for anyway?
definespawnifitem4ofasteroid timer0thenspawnbiggoldasteroid
I think that you need to spend more time on your project
I'm tring not to be mean ok?

Last edited by TheSmileyMan1 (Jan. 5, 2025 15:43:30)

TheSmileyMan1
Scratcher
10 posts

ASTEROID GAME: GOLD ASTEROIDS DAMAGE PLAYER (BUG)

But cooool coding
archgavriel
Scratcher
51 posts

ASTEROID GAME: GOLD ASTEROIDS DAMAGE PLAYER (BUG)

TheSmileyMan1 wrote:

I saw there was a little bit of brown on the gold asteroid
And another bug is that in the federal end I get blue coins and a lot of them
Whyyyy
what do I use the coins for anyway?
definespawnifitem4ofasteroid timer0thenspawnbiggoldasteroid
I think that you need to spend more time on your project
I'm tring not to be mean ok?
you are not really helping, smileyman
tagnindesbois2
Scratcher
16 posts

ASTEROID GAME: GOLD ASTEROIDS DAMAGE PLAYER (BUG)

there is a link to the project at the top

TheSmileyMan1 wrote:

definespawnifitem4ofasteroid timer0thenspawnbiggoldasteroid
I don't understand

this is just to show you where in my script I spawn the asteroids here is a better version if you don't understand the probleme i don't think you can help and you need to spend more time on it

definespawnif(item (4) of [asteroid timerthenspawnbigasteroid
tagnindesbois2
Scratcher
16 posts

ASTEROID GAME: GOLD ASTEROIDS DAMAGE PLAYER (BUG)

definespawnifitem4ofasteroid timer<0thenspawnasteroid
tagnindesbois2
Scratcher
16 posts

ASTEROID GAME: GOLD ASTEROIDS DAMAGE PLAYER (BUG)

TheSmileyMan1 wrote:

I saw there was a little bit of brown on the gold asteroid
And another bug is that in the federal end I get blue coins and a lot of them
Whyyyy
what do I use the coins for anyway?
definespawnifitem4ofasteroid timer0thenspawnbiggoldasteroid
I think that you need to spend more time on your project
I'm tring not to be mean ok?

the brown on the asteroid has nothing to do with the probleme the colision is not color based

The project is not finished because of the bug, until I find an awnser i will not continue this project

what do you mean federal end and blue coins.
when your lifes go below 0 the - is not rendered and therfore you see the coin sprit in a qierd color

and not to be mean but if you don't undersant the code it is you who needs to spend more time on learning
TheSmileyMan1
Scratcher
10 posts

ASTEROID GAME: GOLD ASTEROIDS DAMAGE PLAYER (BUG)

Sure im not a hacker on this stuff butttt you do create some awesome things
Like I do this pro not hacker stuff
whenclickedforeveriftouching Ground?thenchangeyby1iftouching Ground?thenchangeyby1iftouching Ground?thenchangeyby1iftouching Ground?thenchangeyby1iftouching Ground?thenchangeyby1iftouching Ground?thenchangeyby1iftouching Ground?thenchangeyby1iftouching Ground?thenchangeyby1iftouching Ground?thenchangexbyx*-1changeyby-9ifkeyup arrowpressed?thensetyto12ifkeyLeft arrowpressed?thenchangexby-1ifkeyRight arrowpressed?thenchangexby1setxtox*0.9changexbyxchangeybyy
And all blah blah blah stuff for a SIMPLE PLATFORER does scratch know what their doing?

Last edited by TheSmileyMan1 (Jan. 6, 2025 17:34:38)

TheSmileyMan1
Scratcher
10 posts

ASTEROID GAME: GOLD ASTEROIDS DAMAGE PLAYER (BUG)

tagnindesbois2 wrote:

definespawnifitem4ofasteroid timer<0thenspawnasteroid
.

Edit your project and tell me where you made the collision to the asteroids
Then I think I can fix it
TheSmileyMan1
Scratcher
10 posts

ASTEROID GAME: GOLD ASTEROIDS DAMAGE PLAYER (BUG)

I think…
Show me where the collisions are
TheSmileyMan1
Scratcher
10 posts

ASTEROID GAME: GOLD ASTEROIDS DAMAGE PLAYER (BUG)

archgavriel wrote:

TheSmileyMan1 wrote:

I saw there was a little bit of brown on the gold asteroid
And another bug is that in the federal end I get blue coins and a lot of them
Whyyyy
what do I use the coins for anyway?
definespawnifitem4ofasteroid timer0thenspawnbiggoldasteroid
I think that you need to spend more time on your project
I'm tring not to be mean ok?
you are not really helping, smileyman
Actually I played the game that had a bug I kinda understood why it had a bug archgavriel

Powered by DjangoBB