two sliders being used at once.
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
You'll need to use multitouch. Pretty simple for a game where the touches are restricted to a side but since you have a jump button as well that could prove more complex. See my multitouch video and Search the forum for my free multitouch template.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Follow this one and it shows how to keep collisions intact and you can just freeze the Y and put walls in the end for your sliders to collide.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Oh, yeah awesome! I think that should totally do it. I'll try it out and tweak things to be a little closer to what I need. You also clarified a few things in there I didn't fully understand about multitouch. I had seen your video with the basketballs, but not this one. Thanks a lot man!
Vote for Nearest Neighbor Scaling option in gamesalad! Let's make our games look truly stunning!
No problem. There is another one too part 3.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS