Im making a dungeon crawler with a boomerang that gets more and moore powerful throughout the game but i cant make the boomerang come back or even make it rotate! I want the boomerang to come back if it goes some set distance away or when it hits a wall. How can I do this?
Hmmm⌠I have an idea! Try this extension called sprite utils.
jwunderl/arcade-sprite-util
(also to use it you have to copy and paste the link into the search bar over the extensions in the extensions tab)
It has a block that fits into the logic blocks where if distance between one sprite and another is this, then⌠and then make the boomerangâs direction go in that of the playerâs.
I hope this helps a little bit!
Oh and for the wall thing just do if is the boomerang sprite hitting wall then do this, and the this part is the code to make it come back. I donât exactly know what to do for that, so Iâm sorry if this isnât really a concrete solution
also once you make the boomerang coming back code, you should get the timer extension, it would be useful for simulating it just being one boomerang the character throws (if thatâs your intention)
You can use the âset (sprite) follow (sprite)â block and if you press the plus button you can change the speed that it follows you and then while itâs following you do âif sprite of kind (spritekind (probably player)) overlaps othersprite (spritekind (probably boomerang))â and put inside âdestroy otherspriteâ
Itâs always 2 questions to consider:
a) which instruction(s)
b) when to run those instruction(s)
for a)
for b)

-
animation is great for rotating ( drawing more frames results in a smoother rotating animation)
Cheers
Thank you I will try all that
You can also use the sprite rotation extension.
Do you know any good ones?
https://github.com/robo-technical-group/pxt-arcade-image-transform is an extension that I use frequently and I found it on @UnsignedArduino 's list of extensions (Awesome Arcade Extensions)
Well I donât think working on this game alone is very easy. Do anyof you want to be part of a development team? We could have a discord? And we could all help make each others games!
Thanks this is way easier
I donât think discord is allowed because of the first rule of the community guidelines:
1. Donât over-share
Please no sharing of personally identifiable information on the forum - this includes your full name , email , phone number , etc. We want to protect your privacy. Only MakeCode Team members may directly message forum members. Discussion of meeting up with other forum users on any external services is prohibited . This includes (but is not limited to) Instagram, Google Docs, Google Meet, Discord, Among Us, and any other video, audio, or text chat service.
by the way how is the boomerang code working?
Also if you want to have other people help on your game you should make the category arcade/collaboration that way people can help you add features to your game, I think thatâs the best way that fits within the guidelines
among us??? REALLY???
oh well then this game development will be a bit slower.
The boomerang still wonât come back but it is spinning now! I will go make a collaboration for this game.
Yeah, I didnât make the rules, but just wanted to make sure you didnât get flagged or banned.
hi. here is my coding for boomerang. u can try check it out. and have fun!