Log In  

Hey guys, I'm trying to add Player 2 controls but it looks like it's not working for me. I'm trying to do btnp(S) and btnp(f) etc for 2nd player controls and that's not working.

Is there anything specific I have to write/do to enable two players?

P#70005 2019-11-18 04:22

btn(s,1) btnp(s,1) for player 2, zero (default) for one.

P#70010 2019-11-18 06:03

That didn't seem to work for me

P#70109 2019-11-22 04:12

Let's write some code than, shall we ?

by dw817
Cart #s2tb-0 | 2019-11-22 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA


TO LOAD THIS CART IN IMMEDIATE MODE TYPE:

load #s2tb

Now by default player 1's movement are the arrow keys.
Player =2= is controlled by S F E D.

To reconfigure or just to see the current configuration in immediate mode type:

keyconfig

If you don't want to change anything just hit ESC at this point.

HOPE THIS HELPS !

P#70116 2019-11-22 19:16 ( Edited 2019-11-22 19:28)

I see what you did here

if (btn(0,1)) x2-=1
if (btn(1,1)) x2+=1
if (btn(2,1)) y2-=1
if (btn(3,1)) y2+=1

I did (btn(s,1)) and that didnt work; let me give it this shot after work

P#70133 2019-11-23 00:04

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-29 12:53:55 | 0.011s | Q:16