Finally Ep.3! In this video I go over creating enemy AI and implementing shooting.
Any questions or concerns please comment below.
Yeah I was recently using superpowers over the weekend and now that I have drove to stay with a different familly member superpowers does not work. So I think "Oh well! With Superpowers I can work offline, who needs internet?!" But that does not seem to be the case :( Since you cant get into a project with going into your server (which requires INTERNET) xD Hope they fix this! In the mean time will work on unity projects
So if you were wondering why I haven't gotten an episode 2 for my how to make a TDS in superpowers on Youtube yet, its because my keyboard broke and I had to get a new one :( So I have finally made an Ep.2 which goes over How to make the player look where the mouse is:
You can find code similar to the one I used in the Superpowers Docs: http://docs.superpowers-html5.com/en/getting-start...
I also made it so the video is not blurry anymore xD Will try to get the next episode up in a few days. It will go over how to spawn bullets from the player that go where you are aiming.
It has come to my attention that the documentation is not enough to help beginners in the game dev industry to fully understand how to write code and 100% start to finish make a game. I know that I am no expert and I am still learning but I have decided to make some tutorials on Superpowers. You can watch the first episode of how to make a TDS (top down shooter) in Superpowers here:
I just wanna say I'm happy that someone from the dev team is actually in the forums and showing us that superpowers is still constantly being worked on. In terms of IRC I think would be great to be built in with superpowers but when it comes to having it open in a tab I would prefer something a little nicer on the eyes xD Any idea on when the new update will be released?
Well I have not yet really looked into the lighting system in Superpowers but I have messed around with it a few times and I think its still pretty buggy. I think your best bet (especially in a 2D game) is to just add the shadow in with your sprite our create a separate shadow sprite and just have it follow underneath your actor if you want it to have it own animations or you don't want it to constantly be attached to the actor for example when the player is in the air. Hope this helped or gave you some ideas for your own hacky approach! :D
So while making a game I was trying to get the distance between the player and an enemy so I did:
let ShipPos = this.actor.getPosition();
let EnemyPos = Sup.getActor("OtherShip").getPosition();
let distance = Sup.Math.Vector3.prototype.distanceTo(EnemyPos)
This all checks out fine I get the blue light to run the game but when I wanted to print out the distance in the debugger I used:
And it didn't work, it just prints out "NaN" I also tried putting the:
Into the log but I got the same result. Any thoughts?
Don't think so but I'm sure there are ways to make your own. Maybe try finding the distance between the source of the sound and the character and change the volume of the sound according to that. Help this helps!
There is a 2D collision tutorial on the Superpowers website. Here is the link:
I recommend not to just copy and paste the whole thing into your game and to try and recreate it yourself, you will learn a lot more in the long run! :D
So I recently made the change from Craftstudio to Superpowers and I was fiddling around with it last week. Yesterday I got on to explore the engine some more and after I had declared the startup scene in the settings I ran the game and it opened it up as usual, but after it finishes loading the loading screen wont go away and the startup scene wont open. I am running Windows 8.1, 64bit. Any help would be great.