How do I make a way to do a puzzle game to have up to 4 players but still be able to do it in single player using the d-pad.
This is how I would think of how it might be like,
If 1/4 players are playing, then give player one control of all four characters using the d-pad.
If 2/4 players are playing, then give player one control of the up and down characters also giving player two controls of the left and right characters.
If 3/4 players are playing, then give player one control only l the up character also gives the player two control of the left and right characters also give the player three control of just down character.
If 4/4 players are playing, then give each player the character number equals player number also can't change characters for any players.
Problem is that I don't know how get it done seemlessly.
Please help.
-
I can't give any specfic logic , you know what you need, so ,
You will need at least 2 variables, ie, Total number of Players & Current Player.
You can now work out how to Create & Modify those 2 variables , then use the variables as input to other logic.
I may need to be corrected here. -
Also another trick I have seen in many dreams is simply making this as 4 separated scenes. (each with little bit different logic). And then just using the first scene to start the correct one.
This is not a great solution for future updates (you have to update four instances of the scene). But if it is finished it may make the logic much simpler. -
I'm not understanding the 'programming' logic and basic tutorials don't exactly help.
if someone can make the tech I will be good. -
Search Dreams creations, sure i saw 1 today.
الرجاء تسجيل الدخول لترك تعليق.