You can use one object for the spawn locations and make it invisible so use a sprite for this then it should be one function for all teleports in the game as you were attempting to use. Send layout to go to and targeted ID to use for set position of the player as parameters in one function.
You may be able to set solid collision filtering with the tags to make the family ignore collisions with itself, try it!
Change magnitude to a negative number
Well i'm no maths expert but my approach would be something like :
- divide by 100
- floor the return value i.e. floor(3.9) = 3
- multiply by 100 = points
So if your score is 360, would be 3.6 = 3 = 300
I think you can make the wall solid then it won't move into that tile occupied by the wall?
Yes exactly remove the solid behaviour
I don't think the post was any more specific than the subject? :D but in general you can use the Fade behaviour and trigger it to fade in and out based on distance between the player and an object using distance(player,object)
Develop games in your browser. Powerful, performant & highly capable.
I don't see how that could happen if they are all moving together. They have different speeds? Did you give them a solid behaviour?
What's the problem? They should move together and you don't need the for each btw
Looks good
If you want the enemy to shoot more bullets you modify the time right? The logic looks fine there. You can add a instance variable to an enemy which acts as shooting speed and use this every enemy.variable seconds.
i found a not very good way to do this. it requires copy and pasting code and changing the added angle all the time, which its not good if you want to shoot like 32 bullets at the player
what do you mean?
Member since 5 Aug, 2013