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

Sliding Puzzle Help.

Archive: 3 posts


Hi guys, I'm making a simple 3x2 sliding puzzle. Four of the pieces make a sticker panel shape while the last one is a blank block whose purpose is to be a nuisance. I already have the logic set up so when the cursor is on the block, you can move it by using the analogue stick. It will not work if the cursor and its tag is not in range of the blocks as the cursor's tag activates the contolinator and movers on the blocks. The blocks move when I activate their movers however here in lies the problem. The blocks don't move the amount of distance they're supposed to, once it gets too far away from the cursor it gets stuck half the distance rendering the rest of the puzzle unsolvable even with the movers high speed and acceleration so how can I solve this problem?2013-08-30 20:10:00

Author:
SirenScribble7189
Posts: 52


It sounds like whether the block continues to move or not after being selected is determined by the cursor's proximity to it.

Each block needs to have 2 absolute states: moving or not moving. How the block is placed back into a not moving state needs to be more reliable than the whether the cursor is still over it, like a button press or something.
2013-08-31 03:05:00

Author:
Ayneh
Posts: 2454


Hi sirenscribble>
What it sounds like you want is to have it so when you push a directionn it only moces a certain amount (to the next space)
for the example use right direction.
from the controllinators l/r output, connect it to a direction splitter. wire the splitters positive output to a timer (set this to the duration that you need to be able to move right for, to count up instead of on/off) and wire it to reset. Next wire this o a mover (set to vertical speed 0, horizontal speed 10)

S0 when you push right on analouge stick you will move right untill the timer reaches its tarfet, then it stops. you will need to push right again to move again. Repeat the same for each direction/
2013-08-31 15:38: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.