i cant figure out how to make my two asteroids shoot at the player
Can you provide a link, I think I can help.
sorry i was gone for a few
Are these the astroids you would like to shoot at your player?
yes those are the asteriods
And this one’s the Player?
yes that is the player
Can you make a bullet object and name the player object Player?
i will name it player but i dont know what a bullet object is
Oh, just create an object that will act as the bullet being shot at the player.
as in the asteriods that i have
So you want something to shoot the asteroids at the player, correct?
yes that is correct and i want the play to be able to destroy them
First, make the player have these properties
Then copy this and import it into your player’s behaviors to make it movable, unless you want a different type of movement, but I would suggest this one.
{“data”:{“behavior”:{“v”:“2”,“nodes”:[{“inputCount”:0,“outputCount”:0,“name”:“Ship Controls”,“behaviorType”:“logic.NodeGroup”,“x”:25,“y”:280,“group”:0,“id”:“3f3e5b1d2c28634f”,“isMenuItem”:false},{“inputCount”:0,“outputCount”:2,“name”:“Keyboard”,“behaviorType”:“logic.triggers.Keyboard”,“x”:97,“y”:68,“group”:“3f3e5b1d2c28634f”,“id”:“3f3e5b1b5dedca46”,“keyCode”:37,“repeats”:true,“delay”:0},{“inputCount”:3,“outputCount”:1,“name”:“Number”,“behaviorType”:“logic.logic.Value”,“x”:278,“y”:181,“group”:“3f3e5b1d2c28634f”,“id”:“3f3e5b1c49531b43”,“startVal”:4,“tag”:“steer right”},{“inputCount”:0,“outputCount”:2,“name”:“Keyboard”,“behaviorType”:“logic.triggers.Keyboard”,“x”:99,“y”:178,“group”:“3f3e5b1d2c28634f”,“id”:“3f3e5b1c3373fe4d”,“keyCode”:39,“repeats”:true,“delay”:0},{“inputCount”:2,“outputCount”:2,“name”:“Rotation”,“behaviorType”:“logic.properties.Rotation”,“x”:490,“y”:119,“group”:“3f3e5b1d2c28634f”,“id”:“3f3e5b1d8f552c40”},{“inputCount”:0,“outputCount”:2,“name”:“Keyboard”,“behaviorType”:“logic.triggers.Keyboard”,“x”:101,“y”:320,“group”:“3f3e5b1d2c28634f”,“id”:“3f3e5b20a860b74b”,“keyCode”:38,“repeats”:true,“delay”:0},{“inputCount”:3,“outputCount”:1,“name”:“Number”,“behaviorType”:“logic.logic.Value”,“x”:286,“y”:319,“group”:“3f3e5b1d2c28634f”,“id”:“3f3e5b204953e94b”,“startVal”:6,“tag”:“thrust”},{“inputCount”:3,“outputCount”:3,“name”:“Motor”,“behaviorType”:“logic.components.Motor”,“x”:523,“y”:319,“group”:“3f3e5b1d2c28634f”,“id”:“3f3e5b210a74764f”},{“inputCount”:3,“outputCount”:1,“name”:“Number”,“behaviorType”:“logic.logic.Value”,“x”:279,“y”:70,“group”:“3f3e5b1d2c28634f”,“id”:“3f3e5b21d1365a45”,“startVal”:-4,“tag”:“steer left”}],“links”:[{“input_id”:“3f3e5b21d1365a45i1”,“output_id”:“3f3e5b1b5dedca46o0”},{“input_id”:“3f3e5b1d8f552c40i1”,“output_id”:“3f3e5b1c49531b43o0”},{“input_id”:“3f3e5b1c49531b43i1”,“output_id”:“3f3e5b1c3373fe4do0”},{“input_id”:“3f3e5b204953e94bi1”,“output_id”:“3f3e5b20a860b74bo0”},{“input_id”:“3f3e5b210a74764fi2”,“output_id”:“3f3e5b204953e94bo0”},{“input_id”:“3f3e5b1d8f552c40i1”,“output_id”:“3f3e5b21d1365a45o0”}]}}}
done and what is all that?
No that’s just for the player movement. You’ll need to make an object that will shoot the asteroids at the player, then use @JR01’s example for the rest.
ok i have that done now
Then that’s everything, right?
actually im making a money and health system the money is for new ships or better bullets
how do i make the bullet go forwards