Reset / Attribute

LoadingZeroLoadingZero Member Posts: 75
edited November -1 in Working with GS (Mac)
Hi all,
i've a level that i duplicate x10 (the base of physic and meccanics of game is the same in each level).
I've several attribute (scene and game) that i use for checking if game is started, passed or failed.
What's the best practice for reset to default all of this attribute? when change scene behav is call?

Comments

  • rlehmrlehm Member Posts: 320
    In whatever they press to go to next scene:

    Reset all attributes to zero, false, etc

    Timer .2
    Go to scene
  • LoadingZeroLoadingZero Member Posts: 75
    manage attributes and then after 0.2second push che change scene?
  • LoadingZeroLoadingZero Member Posts: 75
    oki, i've made a bad mixture between global actor and scene actor (i still getting used this kind of interface:D)
    Thank's
  • LoadingZeroLoadingZero Member Posts: 75
    ok, well before level complete comes up i'll put a run to completition timer (1second) for save my data and restore defaults.

    Ps i'm having some trouble with actors behav: sometime i must destroy and create a new scene actor because seems not to responde to any condition.
    Is some kind of know bug of the last release?
  • rlehmrlehm Member Posts: 320
    I've had that issue. You may destroyed your actor. and on the next level there is no spawn for it. Please tell us what happens to the actor not respawning. Destroy? Moved off screen (recycled) controlled by attribute to trigger alpha etc. How are you getting rid of the actor. With this answer we can help him reappear.
  • LoadingZeroLoadingZero Member Posts: 75
    i'm leaving my work now, reply later. Thank's for help!
  • LoadingZeroLoadingZero Member Posts: 75
    Back.
    i've create an actor with 7 change attribute for reset to default some game/scene attribute (prepare the scene for the next level).
    I've add this actor to my scene (offset) and add a timer in which after 0.5second i call a change scene behav.
    This actor is spawn when game level is complete.
    I don't know why sometimes it's spawned but if i click the scene dont change.
    I must delete istance actor and "real" actor, recreate it and it's the same. Randomically works.
    Ps i've duplicate this scene, rename it and pass to my change scene.

    If you must know something specific let me know.
  • LoadingZeroLoadingZero Member Posts: 75
    i've notice this now:
    if in my real actor in change scene i say "next scene" all works.
    Seems that instance actor for "change scene" ignore what i configure.
    In each instance actor i've configured to go to the next level by scene name.
  • LoadingZeroLoadingZero Member Posts: 75
    mhmmm may be a problem is beacuse i've duplicate my scene and something is remain dirty?
  • LoadingZeroLoadingZero Member Posts: 75
    Last thing: in my Level Select scene i've something similar: an actor configured with 6 istance actor, i've change che scene i push and all works fine.
    Maybe there's some problem with the same actor used as modified istance actor in various scene?
Sign In or Register to comment.