Home    LittleBigPlanet 2 - 3 - Vita - Karting    LittleBigPlanet Vita    [LBPV] Tutorials
#1

In/Out Touch Material Tutorial

Archive: 5 posts


A user at LittleBigPlanetarium was wondering how to make a material move in and out when touched, like in the main story. Here is the tutorial I posted, I hope it helps!

http://www.littlebigplanetarium.com/topic/6027-how-do-i-make-the-touch-material-switch-layers-at-either-front-or-rear-touch/


http://ia.api.vita.lbp.me/img/ft/37aa36eefd5789f5f58bd85f34cc521eb1727d17.jpg

-I have two TOUCH SENSORS for both the rear and front touch screen. The difference between the two sensors is the Activation Gesture, I have both Touch and Swipe. This allows you to touch to the Touchable Material as well as swipe across a Touchable Material to make them all push in or out.

-The touch sensors are going into an OR gate, which leads into a SELECTOR. The SELECTOR makes it so you cannot repeat a front or rear touch and send the Touchable Material out or in more times than intended. If the Touchable Material is in a position, out or in, the opposite action is the only action that can affect the Touchable Material. For example, if you have just touched the Touchable Material with the front screen it will push in once. Now the only action that will affect the Touchable Material is the opposite action, the rear touch pad pushing the Touchable Material out once.

-The top output of the SELECTOR sends the Touchable Material in once. The bottom port sends the Touchable Material out once as well as turning the Touchable Material on.

-When the Touchable Material is on it is blue, when it is off it is green. You can accomplish this by tweaking the Touchable Material so "Visuals When On" is blue with Brightness at 100% and when Touchable Material is off, "Visuals When Off" is set to Green with brightness 100%.

http://i2.api.vita.lbp.me/img/ft/9b2a4decf386bcd81c910906b1bed9dccc7ea0c1.jpg

http://i8.api.vita.lbp.me/img/ft/718d125e587f95a930dfce098d6dfdb5fd3687d1.jpg

-Lastly there is an Anti-Gravity Tweaker with Anti-Gravity at 0%, Dampening 100%, and Zero Buoyancy at 0%. This makes it so the block will not move but can move in and out.

Remember, if you are using a material other than Touchable Material you will need a TOUCH TWEAKER. This will make it so that whatever material you have chosen can be touched. You will want to teak the TOUCH TWEAKER so that Touch Movable is set to "Touch Movable: Touchscreen or Rear Touch Pad."

Hope this helps, I can also gift you the object/logic if you aren't following the tutorial.
2012-12-17 20:40:00

Author:
Shamanate
Posts: 26


The difference between the two sensors is the Activation Gesture, I have both Touch and Swipe. This allows you to touch to the Touchable Material as well as swipe across a Touchable Material to make them all push in or out.

You only need the default Touch Sensor. There's nothing special about it - if you touch the object, it will trigger the sensor, whether it's a tap, hold, swipe, whatever. The in/out touch blocks from the story levels just use the default tweak on the touch sensor, and those work just fine.

You also don't need the Touch Tweaker unless you want to add the Touch glow effect, or you want to be able to move the object around (which in this case you don't). The Touch Sensor will work without the Touch Tweaker.

2012-12-18 03:26:00

Author:
comphermc
Posts: 5338


Yep, actually the logic could be simplified a lot. Anyway, I'm sure we all appreciate your efforts! It's rare to see a fancy tutorial with pictures and stuff! 2012-12-18 05:06:00

Author:
yugnar
Posts: 1478


it took me a couple of trys but i fingered it out.Thanx so much Shamanate 12013-01-20 23:57:00

Author:
Roosterland
Posts: 31


No problem. Thanks for the correction on the logic Comphermc!2013-02-06 08:06:00

Author:
Shamanate
Posts: 26


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.