r/truegamedev • • Oct 31 '14

Otter2D Top-Down Adventure Tutorial

http://ericmbernier.tumblr.com/post/74890485795/otter2d-top-down-adventure-tutorial-part-1-an-intro
0 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/drguildo Feb 25 '15

A bunch of things have changed since that article was written, including the control system. This example should help:

Global.PlayerOne = game.AddSession("P1");
Global.PlayerTwo = game.AddSession("P2");

Global.PlayerOne.Controller.AddButton(Controls.Up);
Global.PlayerOne.Controller.AddButton(Controls.Down);

Global.PlayerTwo.Controller.AddButton(Controls.Up);
Global.PlayerTwo.Controller.AddButton(Controls.Down);

Global.PlayerOne.Controller.Button(Controls.Up).AddKey(Key.W);
Global.PlayerOne.Controller.Button(Controls.Down).AddKey(Key.S);

Global.PlayerTwo.Controller.Button(Controls.Up).AddKey(Key.Up);
Global.PlayerTwo.Controller.Button(Controls.Down).AddKey(Key.Down);

1

u/Mojoedoto Feb 25 '15

Ahhh great thanks alot for your reply!