two sliders being used at once.

owen_dennisowen_dennis Just a guy, you know.Member, PRO Posts: 236

Hi! I'm trying to make a multiplayer pong-like game. There is a player at the top of the screen and a player at the bottom of the screen. Each player has a jump button on their right and a slider on their left. The slider controls the left/right movement of their character like a joystick (but limited to x, no y). This, I'm hoping, will make it so I can have the characters move slowly if the slider is only a little to the left or right, then gradually faster or slower depending on where the slider is within its limited range of movement (if the slider is let go, the slider should snap back to its central, starting position). I would want to make sure that it doesn't go beyond the ends of the slider's "slot" as well.

I'm finding some tutorials that are about sliders and I'm finding some tutorials that are about joysticks, but I'm having trouble combining them. Also, these tutorials tutorials seem to be assuming there is only one person touching the screen at one time, so tutorials will often say to constrain to the mouse or something. However, because I've got two people doing this at once, I'm afraid that makes it a multi touch situation. I'm not sure exactly how to make it understand that there are two different people touching the screen at once.

Any advice on how to go about doing this?

Comments

Sign In or Register to comment.