GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Need Help With Scene Issue!! I just cant figure it out

shooter93shooter93 Posts: 10Member
edited July 2016 in Working with GS (PC)

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

  • The_Gamesalad_GuruThe_Gamesalad_Guru Posts: 9,904Member

    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.

  • shooter93shooter93 Posts: 10Member
    edited July 2016

    @The_Gamesalad_Guru said:
    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.

    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.

  • NNterprisesNNterprises Posts: 387Member, PRO

    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

  • shooter93shooter93 Posts: 10Member

    Its confirmed that you cant change scene size during runtime

  • SocksSocks London, UK.Posts: 12,822Member

    @shooter93 said:
    Its confirmed that you cant change scene size during runtime

    What would changing the scene size look like to the player ?

Sign In or Register to comment.