Home    LittleBigPlanet 2 - 3 - Vita - Karting    LittleBigPlanet 2    [LBP2] Help!
#1

Detect which sackbot is grabbing?

Archive: 4 posts


I'm making a hide and seek level, and I need a way to detect which sackbot is grabbing another sackbot. This way, only the "it" sackbot can tag other players. I tried using the "require tag" setting on the grab sensor, but I'm not sure who should have the tag or how I should set that up...

This is the only problem I'm having, and I don't want to use another person's logic at a giveaway level or something.
2014-01-24 00:32:00

Author:
dragonboy269
Posts: 172


hmm, well you could just allow the grabbing bot to be grabbing, so others cant use R1, or you could use timed R1 activation, so if bot 1 has .1 sec delay, and it activates in .1 second then its bot 1, .2 bot 2, etc, but that is more innacurate

Just my ideas, there is no official way to do it
2014-01-24 07:32:00

Author:
amiel445566
Posts: 664


If there is a "require tag" option on a grab sensor, you could do it this way:

1) Give each sackbot a unique tag reference - eg 1, 2, 3 and 4
2) Have a tag activated to recognise whose turn it is to do the tagging - eg tag1, tag2, tag3 and tag4
3) On each sackbot set up 4 AND gates. To the AND gate imputs attach the grap sensor, and the relevant "turn sensor" (eg 1 and tag1)
4) Attach the AND gates outputs to your score givers or whatever logic you want.

Does that help in any way?
2014-01-24 11:01:00

Author:
Ali_Star
Posts: 4085


Hi Dragonboy. I totally understand.
If I can suggest some ideas. Think logically what you need to achieve. Thew way i do logic is first think about the problem and the steps I need
to get it to work.
Ok, you want one person to be 'it'. All, other players are to be caught by IT. THeyu cannot grab IT, but IT can grab them. When all players are caught, the round ends, and the first player caught now becomes IT.
Start with making 4 playerc controlled sackbots/ control seats as normal.
Elsewhere is an invis piece of sticker panel with a microchip on it.... this is basically an invisible game control chip for keeping track of whose IT, rounds etc. (MCC)
As the level begins logic on the MMC chooses a player to be IT. It ons one of 4 IT tags (one will be on each sackbot).
On each sackbot is a tag sensor to detect if that players IT tag on the MMC is on.
This tag sensor on the bot wires into a material tweaker set to be not grabbable. Also from this tag sensor wire it to a NOT gate which in
turn wires to another material tweaker (this time make it grabbable).
- This works by starting the level, the MMC picks a players IT tag to turn on (all others are off). The tag on the sackbot of the ITed player is on so it activates the not grabbable material tweaker. All other players IT tags are off, so thier NOT gate material tweaker (to be grabble is on)

This is just a basic guide buddy, so if you need me to elaborate let me know, but thois should help a little
2014-01-27 14:16:00

Author:
Sean88
Posts: 662


LBPCentral Archive Statistics
Posts: 1077139    Threads: 69970    Members: 9661    Archive-Date: 2019-01-19

Datenschutz
Aus dem Archiv wurden alle persönlichen Daten wie Name, Anschrift, Email etc. - aber auch sämtliche Inhalte wie z.B. persönliche Nachrichten - entfernt.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.