ID:177715
 
How would I start out a shooter. Something simple like Bizlof War. You don't need to give me the coding you can just explain how I would do so. Also how would I make a mov system lie his. Where up makes you move forward left and right make you turn and so on and so on.
Your gonna have to do some searching like what Malver did, truth be told from the level your starting off at you can't really call his game simple in your point of view. Also, proper spelling/grammar could help you with talking to people and getting answers.


<<>>Kusanagi<<>>
Codesterz wrote:
How would I start out a shooter. Something simple like Bizlof War. You don't need to give me the coding you can just explain how I would do so. Also how would I make a mov system lie his. Where up makes you move forward left and right make you turn and so on and so on.

I know you didn't ask for coding, but I made an extremely simplified system for my movement code. Feel free to fiddle around with it as you please:

client/North()
step(src.mob, src.mob.dir)
return

client/South()
src.mob.dir = turn(src.mob.dir, 180)
step(src.mob, src.mob.dir)
src.mob.dir = turn(src.mob.dir, 180)
return

client/East(var/F)
src.mob.dir = turn(src.mob.dir, -45)
return

client/West(var/F)
src.mob.dir = turn(src.mob.dir, 45)
return


Basically, the turn() proc plays a strong role in the turning stuff, while I just use a simple step() calling for the north/south movements.

As for firing, all you have to do is get the direction that the character is facing, and assign it to the newly created projectile object (moved to the character's location). Then, I used a for() loop as a counter, so that it would break when the object's lifetime was over. Of course, in outside procs, instead of deleting the obj, change it's lifetime to 0.

for(var/a = 1, a < O.lifetime, a++)
step(O, O.dir)
var/turf/X = O.loc
if(X.density)
a = O.lifetime
sleep(O.speed)

I also made the projectiles non-dense, because I feel that I can control certain turfs that are dense to mobs, but non-dense to the projectiles.

Hope that helps you out.
In response to Kusanagi
By simple I mean basic or standard.