Need Help With Scene Issue!! I just cant figure it out
I'm trying to make the scene's width, increase by the amount of pixels, my actor passes across the X-axis related to the scene's startpoint + an extra 300 or 400. while in run runtime.
The problem is that i dont know how to set in commands for changing the scenes attributes. and i was hoping this community could help me getting it working.
Note: Im kinda new to this coding and programming stuff. So if possible, please leave a detailed explanation in the comments.
I've tried doing something like this:
- Make a game interger for the scene X and Y size
- Make a game interger for the actors X and Y position
Actor commands:
- control camera
- timer --> every 1 second:
change attribute "game.actorsNewX" --> self.position.X
change attribute "game.actorsNewY" --> self.position.Y
change attribute "game.scenesNewX" --> (self.position.X+350)
change attribute "game.scenesNewY" --> (self.position.Y+200)<
Heres where i cant go any further. My plan was to:
Make a timer for the scene:
-timer --> every 1 second:
change attribute "scene.width" --> "game.scenesNewX"
change attribute "scene.height" --> "game.scenesNewY"
Comments
To access scene variables you must unlock an actor on the scene. Now do the coding in the actor on scene and you will see the scene variables.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
I did already, all the commands are inside the "instance" actor. I made it so the scene is supposed to grow in width every 1 second. but when i previews the game it doesnt grow at all.
Scene might be growing but your camera might not let you be seeing it in the preview, might need to change the camera size too
Its confirmed that you cant change scene size during runtime
What would changing the scene size look like to the player ?