How do I set triggers and make them reappear? *URGENT*

Get help using Construct 2

Post » Thu Dec 22, 2016 6:06 am

Sorry for the confusing title, but here's my problem. It's the holidays, and I decided to make a Santa-themed game, because why not? I've got enough experience, so I put together this game. My issue is this, My background has houses and whatnot, and I set invisible triggers/colliders on the chimneys . The background scrolls perfectly, but... The triggers/colliders scroll as well. How do I get them to stay in place, and reappear once the background is finished scrolling? I need answers ASAP, as this is a final project for my GameDev class... It's due tomorrow, if that helps.
B
4
Posts: 4
Reputation: 208

Post » Thu Dec 22, 2016 8:12 am

I don't know if I understand you correct. Do you have an endless scrolling background with chimneys and you want that the colliders scroll with the background and stay on the same place on the background?
Then you can try to pin the triggers on the background with the pin-behavior.
B
24
S
3
G
1
Posts: 451
Reputation: 2,165

Post » Thu Dec 22, 2016 8:19 am

Asmodean wrote:I don't know if I understand you correct. Do you have an endless scrolling background with chimneys and you want that the colliders scroll with the background and stay on the same place on the background?
Then you can try to pin the triggers on the background with the pin-behavior.


Well, I tried that, but I think I pinned them on the wrong layer. Lemme come back to you if I got it or not... Thanks for the advice, by the way.
B
4
Posts: 4
Reputation: 208

Post » Thu Dec 22, 2016 8:23 am

Well, I tried it, on different layers, and the "Position and Angle" and "Position Only" modes... Neither worked, they're pinned where they're supposed to be at the beginning of the game, but they don't move backwards.
B
4
Posts: 4
Reputation: 208

Post » Thu Dec 22, 2016 8:33 am

You have to pin it to the background-object.
It works for me. An example:
https://drive.google.com/file/d/0B5FlDY ... sp=sharing
B
24
S
3
G
1
Posts: 451
Reputation: 2,165

Post » Thu Dec 22, 2016 9:14 am

Can you put the triggers on a layer with parallax set to 0 to lock it in place so the layer never scrolls?
Image
B
30
S
9
G
3
Posts: 171
Reputation: 3,329

Post » Thu Dec 22, 2016 9:59 am

I got it! I saw Asmodean's event sheet, and noticed it was "System>On Start of Layout". where mine was "Collider>Pin>Pin To Object>"
Thank you so much! I can now finish my game!
B
4
Posts: 4
Reputation: 208


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 33 guests