camera control question
CaptFinn
Member Posts: 1,828
I have a invisible actor that i want to use as a "tour guide" actor. Before the player starts the level. The invisible actor travels down the X from start to end of the level. This gives the player a quick tour of the level before he starts. Then the actor comes back.
I gave this tour actor control of the camera.
if X 640
after 4 secs
interp to x1920
when at x1920
after 3 secs
interp to x630
when x is 630
change tour boolean from false to true
Then in the hero actor
when tour is true
control camera.
Then the player starts to play.
But when the actor starts interp from 640 to 1920. it doesnt take the camera with it.
Is this a interp problem. Or should i use "move to"
Comments
I even tried Move to instead of interp. still wont work.
NEVERMIND hahahaha. actor wasnt in a scrollable position. hurby dur
@FINNBOGG, sounds like your method is working fine now but just FYI, you can also manipulate the X and Y locations of the camera directly and move it around instead of having it follow and actor if you'd like.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Well hell!?!?!??!?!!!!!!!!!!!!!!!!
@FINNBOGG to do what @jamie_c said, you need to unlock an actor. (double click an actor on the scene).
Then you can access the scene attributes.
You would still need a new actor to do so. I don´t recommend unlocking just any random actors.
I only unlock actors when i absolutely need to, because it is extremely easy to brake your game if your not careful with what you do.
Mental Donkey Games
Website - Facebook - Twitter
@NipaDidIt, agreed. I always make a specific 'control' actor to do things like that.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page