ID:2060846
 
Hey all, So I came up with an idea for a game that is only 1 map that fits the screen and 2 players can play on it, kinda like bomber man.

My question is how would I allow for 2 player on the same screen or computer?

any ideas are appreciated! :D


Thank you in advance!
Bloodocean7.

Have 2 mobs and make said mobs controllable via different keys.

Example: AWSD and arrow keys, with their attacks on different keys. Player 1 attacks with x,z and 2 with numpad.
That would be ideal, how would you do that? macros? I tried messing around with macros and it didn't seem to work, but Im probably doing it wrong lol

thanks for the reply! :)
You need write your own movement system. Couse standard movement macro is only for one player.
That makes sense, do you know of any libraries I can use as a guide or could you post an example? I haven't messed around much in this arena and a guideline would be great :)

hmmm I'll make two vars(mob) for client.
mob/var/mob/Player1=new
mob/var/mob/Player2=new
//ascribe them any mobs, and do some proc for move it.

proc/newMove(var/mob/M, var/Dir)
step(M,Dir)
//This is just exemple. You need working with movelop, pushing button and relase it..
//all what you need call this proc for player.

newMove(src.Player1, NORTH)//move player 1 in north direction.
In response to Marekssj3
Marekssj3 wrote:
hmmm I'll make two vars(mob) for client.
> mob/var/mob/Player1=new
> mob/var/mob/Player2=new
> //ascribe them any mobs, and do some proc for move it.
>
> proc/newMove(var/mob/M, var/Dir)
> step(M,Dir)
> //This is just exemple. You need working with movelop, pushing button and relase it..
> //all what you need call this proc for player.
>
> newMove(src.Player1, NORTH)//move player 1 in north direction.
>


I made something out of your example. It is working fine but the main problem is that 2 macros cannot interfere with eachother.

The one thing you can't do is split-screen. Unfortunately it just isn't an option. But if you're all sharing the same view, it should be doable along the lines Yut Put suggested.
Well, anything is doable, but making a split-screen multiplayer game would involve some really hacky workarounds. One of these would be to implement a second map screen, but since only one map can see the view at a time, the second map would have to rely entirely on screen objects. This isn't really all that bad if you're using atom.transform's Translate() procs to move things around the screen instead of recalculating screen_loc's text every time.

But again, this is a very hacky way of doing things and it involves a huge refactor of your current code, most likely.
Im really interested in what Yut Put said. I want to give it a try but than again I really don`t know how to "Change references to "client" to "Client"(capital C)." Screenshot or more detailed info would be appriciated