this is a shooting game actually, but I don’t know how to make it has a trajectory and shoot bullets. can anyone let me know how? it’s one of my tasks
https://arcade.makecode.com/S56482-48011-13900-08314
I’d say the best way to make it shoot bullets is to use the projectile extension, it has extra blocks to help you get the physics of the projectile just right.
And for setting the trajectory of the arrow, I’d suggest making a few different angles of the arrow (left, top-left, top, top-right, and right). When the player presses the right or left arrow, you could change the sprite’s image to the direction farther in the left or right direction.
You could also use the rotation extension to rotate the arrow, but that’s a bit more complicated if you’re up for it!
Let me know if this makes sense! I’d offer to make it myself, but if it’s part of your tasks to complete, I’m not sure if that’s allowed ![]()
Ooooh, it’s a good point. I haven’t try to make angles of the arrow yet. As for the extension code, I’ve tried it before, but it kept showing error and it even affected my code’s function, and I don’t know what’s going on…
oh~~ It’ s nice to hear that, but my teacher might see this quote since this is the website he told us about… Maybe is there any way not using extension blocks to make it shoot bullets? At least I want it is able to shoot sth out, or I should change my game’s name ![]()
If my grammar failed, plz don’t mind it, I’m not a native English speaker ![]()
There is a quite easy way to shoot! You can use this demo!
Or in all directions:
![]()
Oooh~ Interesting, thank you, you make coding seems easier ![]()
![]()
Here’s the introduction of my game:
You can move the arrow, which is your character by mouse, and in the meantime, avoid the enemies, which are projectable from nowhere and the booth, in order to save your points. By the way, you can receive points by touching the targets. I guess the feature of this game might be that you can practice your reaction rate, since there are some yellow targets which value 5points , but they’re quite fast.![]()
Cool! Also, great english!![]()