How do I make zoom work with parallax (tried "everything")

Get help using Construct 2

Post » Mon May 16, 2016 9:02 am

Hello everybody, I have for a couple of weeks now tried to solve this problem. Have tried "everything". I´ve seen that there are similar problems here and it is parallax with zoom. I have tried really many of those formulas and ideas, but none seem to work for me. One solution would be to set parallax off, but that´s not the solution I´m looking for.

My main character here is Clark (the constructor guy). Player clicks or taps bolts of beams in order to drop them and help him move around. Also clicking near Clark will give him a push to left or right (or up if clicking clark). He is trying to reach the lunchbox. I have a nice zoom effect with parallax (mousewheel) but I´d like the camera to always zoom into Clark. I have tried unbounded layout etc. I have created invisible object that the camera follows, but it doesn´t work. I have tried the canvastolayoutX. I have tried touch.absoluteX (for player to tap the screen and then move the camera there). Nope.

I wonder what should I add to make it work. I´d be happy with two options.

1) Automatic zoom to Clark always.
2) Player taps the screen (or clicks) and camera moves there with a nice smooth way.

Sorry for my english. It´s not my mother language.

btw. This is my first post so I´d like to add that nice community here (so hello again :) ) and nice software this C2 (even though I´m puzzled by many many things)

I stripped most of the extra stuff from this capx file (but left in the event sheet 1 some of the try-outs I did in order to make the camera follow either tap or Clark.)

Hopefully someone can help me out with this one.

Here is the capx

https://dl.dropboxusercontent.com/u/104 ... blem1.capx
Last edited by tomi71 on Mon May 16, 2016 9:45 am, edited 1 time in total.
B
29
S
15
G
17
Posts: 137
Reputation: 10,848

Post » Mon May 16, 2016 9:09 am

This capx must be started from intro. For some reason this capx tries to start with options (since I removed a lot of stuff there and didn´t fix that.) I removed some behaviours (3rd party plugins). I tried to find if I had uploaded some plugins there, but didn´t find any extra ones.
B
29
S
15
G
17
Posts: 137
Reputation: 10,848

Post » Mon May 16, 2016 3:46 pm

Your link is dead.
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,418
Reputation: 4,830

Post » Mon May 16, 2016 4:04 pm

Thanks for telling me this. It worked earlier today, as I tested it. I wonder if dropbox is down. I follow the situation. Actually I could upload this to mediafire meanwhile. I will do it.

Edit. It did work just now as I clicked it. I will upload it to mediafire too in case it happens again.
Here is mediafire link: http://www.mediafire.com/download/fsu5r ... blem1.capx
B
29
S
15
G
17
Posts: 137
Reputation: 10,848

Post » Tue May 17, 2016 8:19 am

Maybe I could limit the zoom. That would kind of work. I wonder what could be the best way to make a scroll to action to the borders of what-player-sees in monitor. If I would put an invisible sprites to parallax 0,0 global layer and test if they are tapped and then scrolled towards that tapped sprite. I wonder what would be the best way to set scroll to that position?
B
29
S
15
G
17
Posts: 137
Reputation: 10,848

Post » Tue May 17, 2016 6:56 pm

Have you any ideas if the zoom is impossible (since the computer thinks layers different as we humans).
B
29
S
15
G
17
Posts: 137
Reputation: 10,848

Post » Tue May 17, 2016 8:08 pm

Anybody?
B
29
S
15
G
17
Posts: 137
Reputation: 10,848

Post » Wed May 18, 2016 9:30 am

Any ideas for another way of doing this? I have tried magicam. I have tried making viewport smaller etc but nothing ever works. There must be somekind of an solution. Please help me.
B
29
S
15
G
17
Posts: 137
Reputation: 10,848

Post » Wed May 18, 2016 12:43 pm

I limited the zoom. So this is kinda solved. :shock:
B
29
S
15
G
17
Posts: 137
Reputation: 10,848

Post » Thu May 19, 2016 10:21 am

Would be nice to know if anybody checked my capx and tried to find a solution or was this just totally ignored. Could be useful information.
B
29
S
15
G
17
Posts: 137
Reputation: 10,848

Next

Return to How do I....?

Who is online

Users browsing this forum: CrudeMik, FabianB and 47 guests