Btw I am making a mario game and trying to make a fireball appear right in front of the sprite and dont forget i am walking to....
Offline
One way is just to have another costume that shows the character with a fireball in front. This works well if the character is moving, since the fireball will move with the character (since it's part of the costume).
Another approach is to use a separate sprite for the fireball and have it go to the position of the character sprite
go to x: ([x position v] of [sprite 1 v]) y: ([y position v] of [sprite 1 v])Of course, you may want to offset the position a bit by adding something to one or both coordinate parts
Offline
try...
this will need to go on mario
when gf clicked if <key[space v]pressed?> broadcast[fireball v] endthis will need to go on the fire ball
when gf clicked hide
when I recive[fireball v] go to [mario v] show point towards (([direction v] of [mario v]) - [90] ) //<--or 180 to face right way repeat until <<touching [edge v]?> or <touching [goomba]?>> move [10] steps //<--you might want to use gravity explain below end if <touching[goomba v]?> broadcast[killgoomba v] end hideand for the goomba
when I receive[killgoomba v] hidethis will kill the goomba
Offline