Background moving opposite to camera tracker.
QuinnZoneStudios
Member Posts: 452
What I'm trying to do is have my background elements only move (in the opposite direction of course) when the camera moves.
So I have an actor that controls the camera and of course I'm using the camera tracker box on it. I only want the background layers to move when the camera moves, not when the actor.
From what I've seen it's possible using control camera but beyond that I'm stumped. It seems this might be quite a common request so I'm hoping some kindly Saladeer will take kindly to this poor old decrepit game builder and lend a hand.
As a side note, I noticed the iPad viewer shows a slow frame rate but when I play my WIP on the actual device it runs buttery smooth! Anyone else had this problem? I'm using all the latest
versions.
Thanks chaps and chapesses!
Mike
So I have an actor that controls the camera and of course I'm using the camera tracker box on it. I only want the background layers to move when the camera moves, not when the actor.
From what I've seen it's possible using control camera but beyond that I'm stumped. It seems this might be quite a common request so I'm hoping some kindly Saladeer will take kindly to this poor old decrepit game builder and lend a hand.
As a side note, I noticed the iPad viewer shows a slow frame rate but when I play my WIP on the actual device it runs buttery smooth! Anyone else had this problem? I'm using all the latest
versions.
Thanks chaps and chapesses!
Mike
Comments
Cheers!
"But how could they be jamming us if they don't know... if we're coming?"
Sorry mate, I don't think I can help on this one!
Just posting so you know you're not being ignored!
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
Actually, forget all that, perhaps I'm thinking of something else! I could have sworn Fraggle Rock was made in the UK...
Anyhow, your prob is pretty much straightforward; in your player's rules, put a control camera behaviour. in the editor, click on the small camera icon at the top, then adjust the camera area to quite small in the middle. That's basically it.
A good example is used in one of the scenes of a CodeMonkey game/example, here:
http://gamesalad.com/game/play/22929
Hope that helps!
:-)
Just found another Tshirtbooth demo which might help (if I've understood correctly what you're asking):
http://gamesalad.com/game/play/54756
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Thanks Gyroscope, I'll head over and look at that to see if it's what I'm trying to do. Been searching the dag-blamed forums for hours - lol!
Yeah UK Fraggles was shot early to mid 1980s at the old Gillingham facility (which used to be a cinema). As it was TVS, their headquarters were indeed in Maidstone. I know they did a bunch of other puppet programmes after then so no doubt you saw an ad for one of these. We even shot some Uncle Travelling Matts around that area too. I was actually born in Chatham atop an incredibly steep hill. Somehow I rolled down and ended up in Texas.... :-o
So you still live near there? I remember during lunch breaks we used to go to Gillingham High Street to a restaurant that had Dseperate Dan Cow Pies - no lie!
Thanks for the assistance and I'll post if it worked.
Cheers!
P.S. Glad you like the animation, that was at 15 FPS. Interestinng to note that on the iPad, I'm now getting 30 FPS and left and right facing anims. I'm pretty stoked again after almost abandoning my game.
I think I'll try rolling down Chatham hill to see if i land up in the USA! I'm guessing Texas is more than a little different than the Medway Towns!
I was born in Gravesend, and lived here all my life (apart from 2 years living near Cambridge city). Widely untravelled, I am...
I don't remember Desperate Dan cow pies but then didn't often frequent the Gillingham side of things. (Or have I a vestigial memory of them?!)
Hope the links are what your after. I look forward to seeing your finished game, Mike!
OK, as you'll know it's gone 3 in the morning here in the UK, and I think it's about time that this insomniac actually got some sleep...goodnight to you!
:-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Okey-Dokey so that wasn't quite what I needed.
I already have the camera following the character.
What I'm looking for is a way to move the background layers at different speeds only when the camera moves, for the illusion of depth.
I know there's got to be a recipe somewhere for this
"That Death Star's operational!"
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
Sorry to be so lame
:-)
Edit: found them easy than I thought!
They are very impressive, both by JCFord. The first one shows the principal but you can't download the game file, unfortunately:
http://gamesalad.com/game/play/33976
This second one is relatively complex and will need a little "backwards engineering":
http://gamesalad.com/game/play/52419
:-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
I remember the first but hadn't seen the second one.
The big difference is I want the background to stop when the camera stops, rather than a non stop scrolling. especially as the camera will go both left and right. Also I wanted to add a little up and down too. So it's completely determined by the camera moves. When the camera is static, the background should be also.
Crazy talk huh?
I'm unsure of how to have the background scroll only when the camera moves, i.e. only when my character pushes against the tracker box. This way I can move the BG layers at different speeds for depth, but when the character (or rather, camera) stops, so does the background.
I'm pretty sure this is possible and wonder if anyone out there knows the answer or has done this?
Humble thankings,
Mike
Apologies if I'm being irritating....
Thanks