Make it switch to next player
This is a bit of a weird one I think and yes I'm at trying something different again and of course I gotta run into issues and not know what I'm doing.
So anyhow...... I'm trying to make a trivia game. My thought is to make a puppet move as sort of a playing piece whenever you get a correct answer. I made one trivia question as a test and wired the correct response to a microship which has my "move a block away" logic in it. Mission accomplished, If I answer correctly I have it move one block ahead, looking sorta like a chess or checker move, that kind of move, one block at a time. Surprising I done this with out too much trouble howbeit with adapting a tutorial to suit what I needed.
I set up another microchip out in the air and it holds what I tought would be my player changer logic. I put a node to run all the wrong answers through then attached it to the go to next output in a selector. The idea being that if a player getting a wrong answer it'd go to the next player. That selector is hooked to 4 wireless transmitters. Named for each player. In each corresponding player there is a wireless reciever. This connects to force possess. I also have a not gate to say when that reciever is not on to depossess. I have gotten so far as to when I answer a question wrong it will depossess the puppet but then it will not force possess the 2nd puppet and so on. Even though it is hooked up. I've pressed play time in edit mode and got an answer wrong. It shows that the selector changes to port B even, so idk what is wrong and the receiver is on. Even tho it's wired into the force possess it is not doing it.
Also, does possessing another puppet make it the 2nd player or do I need to somehow make it the 2nd player? I plan on having everyone use the same controller.
My plan is eveeeeeentually to make each player have lives and once you lose all of them by getting wrong answers you'd get kicked out as a player. The object would be to move so many times and reach the finish line. Maybe figure out how to have settings for how many players and how many lives. I Have no idea how to do any of that but one thing at a time lol. I'm slow with this stuff as it is.
If this made no since I am sorry. Feel free to ask any questions ya need to, to clear up any of my nonsense lol. :-/ Thanks in advance for any responses.
So you should only have one controller powered on at a time. The secret here (which I used in my upcoming game) is to turn off the other controller sensors. If you turn the ones off, the one that is powered on will auto possess. I used wireless controllers like you and these automatically turn off or on the relevant controller sensor in 4 different puppets.
I hate to add to this post as I have got all of the things in the OP figured out. It does however have to do with this same thing so instead of making a whole new post and taking up space I'll jus add to this one.
As I said, I've gotten all of the logic to work. Answer a question correct, you move, get a new question. You get it wrong, it changes to next puppet and you get a new question. All that is done.
What I need some thoughts on now is as a test run I answer one question right and then purposely get one wrong to move to the next player. I do this with all the players to see if they move the same amount as each other.
All players have the same mover settings in the move logic but the last two do not line up equal with the first two puppets. The last puppet don't hardly move half the distance as the others. Walk speed and run speed is the same.
Any thoughts on this?
Let me know if there is any way I can clear up what I am talking about.
I am using 4 of the puppets that are media molecules premade ones. Kumi, arti, ash, and Rowen I think are the names. My apologies I don't have the game turned on right now.
I know I keep adding to this monstrosity but I figured maybe a video would help. Full disclosure the content is religious in nature. My family is religious and I am trying to make a trivia game for us to play together. Just wanted to say it incase anybody doesn't want to see that sort of thing.
Sorry about that lol. I was trying to get everything down and it ended up being too long. I have it partially working.
1. I want a player to answer a trivia question and move if they get it right and recieve another question but if wrong go to the next player.
2. I have a node running all the correct answers to my "move player logic" in each player and also to a randomizer to select a new question. Also a node for wrong answers into a switch players microchip.
A. I can't get it to give me a 2nd, 3rd, etc question when a player gets one right.
B. Sometimes two dialogue boxes will come up at once, one on top of the other, even though they are all on a randomizer on separate outputs. Especially happens when the game first starts, the first player. After that it works itself out it seems like anyhow.
Um... there's a lot here. Could you summarise with one sentence on each of the following: what you want to happen, how you're trying to make it happen, and what happens?
I have made 4 questions as a test. Made the randomizer work by taking the possessed output on each control sensor to the randomizer. The problem is I got my "correct" node wired to move each move logic in each puppet. Thing is when one person gets it right. They all move at one time. :-/
I'm pretty sure I tried it at one point thinking the exact same thing as you but the imp would come out of the one player but not force possess the second. The selector would be lit up on the second output and everything but nuttin.
This is just a hunch, i didn't try it out, but it should work. If you have several puppets, each with their own controller sensor, why not try to set them all to force possession and connect the controller sensor power directly to the selector output. This way only one sensor should be activated at a time, forcing the imp to possess the next one when switching.
Maybe I'm missing something here, because my solution seems to be too easy. Can't really help with the other problem, i have no experience with multiplayer games. I hope it helps nevertheless.
I got it to force possess the next puppet when a wrong answer is given. In the IMPortant properties in the controller sensor for each puppet I highlighted which player I wanted each puppet to be. I highlighted everyone player and it now force possessed the next player. I don't know if that area only recognizes multiple PS4 controllers when they are turned on or what.
I am going to try to figure out how to make a randomizer choose questions in different orders every game but I know that randomizers only have so many ports. I'm gonna have to try to figure out how to link randomizers so It will allow for me to continuously add more questions as sort of updates.
I'm thinking maybe if I jus attach a 2nd, 3rd, etc randomizer to an output of each randomizer it'll move to the next randomizer and maybe choose one of those questions. I don't know bout that though. It sounds logical but nothing that makes sense to me works lol....
I don't know if any of this is the most efficient way but hopefully it works. My current plan is to run all the wrong answers into a node that is then run into another node on another microchip which changes the selector to the next output and to the next player. Also all the right answers into the move logic and also give another question somehow. :-/
I'm trying to get a few questions put in as a test and making sure all the puppets move and get questions popping up correctly.
I will need to hook up my Is possessed output from each puppet to the randomizer I think.