Attribute Problem // Last problem in my app....Please help me

GuaveMediaGuaveMedia Member, PRO Posts: 1,262
edited November -1 in Working with GS (Mac)
I have an actor collecting stars, and when I have colleted all of them( attribute collect=3),a button is showed up for next level, and in this button I said: When touch is pressed and mouse position is inside, change scene and change attribute "collect" to 0.

But sometimes Level 1 is reseted and sometimes I come to Level two ://

Please help me guys, I don't find a way or the problem...

Comments

  • NtGNtG Member Posts: 103
    Alex0407 said:
    I have an actor collecting stars, and when I have colleted all of them( attribute collect=3),a button is showed up for next level, and in this button I said: When touch is pressed and mouse position is inside, change scene and change attribute "collect" to 0.

    But sometimes Level 1 is reseted and sometimes I come to Level two ://

    Please help me guys, I don't find a way or the problem...

    you should probably have the "change attribute collect to 0" on the next scene, otherwise it is changing it to 0 on the current scene, making the collect=3 statement false.
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Sounds good but in which actor should I change attribute to 0 ? main actor or background or??
  • NtGNtG Member Posts: 103
    Alex0407 said:
    Sounds good but in which actor should I change attribute to 0 ? main actor or background or??

    I usually like to have an actor called "master" for things like that. But it's really up to you, if you want to put in the background or the main actor go for it.
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    But still one problem, let's say I make an attribute called "setallzero"..and when in Level1 button is pressed change attribute to 1. And in Level2 I have an master actor saying when Attribute=1 set all other Attributes zero. That's what you mean??
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Can someone help me??
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Nobody an idea???
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Can someone help me please? I have the whole day time to go on programming and I am stucked now ://

    Always in Level 2 when I press go back to Level 1, my scene is only reseted. But I made an rule saying when touch is pressed change scene to Level1.

    I tried to make a new attribute for Level2, but same again ://

    It is only when I come from Level 1 to Level 2...
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    Hey there,

    I recommend watching all the gamesalad cookbook videos on youtube and the videos on gs helper.com Once you watch those videos youll have a much better knowledge of gs.
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    I watched most of them, I mean I programmed 15 levels, also difficult ones but I just don't know the failure about my problem. I don't know what is wrong...if I would know that,I think I can solve the problem!
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Okey the problem is the following:

    I have 15 levels, and when I play level one and I collected all stars, I come trough a button to my next level. When I play Level2 and I have collected all stars, a other button is showed up, when this button is pressed scene is returned to level select scene. But when I press this button most of the time my scene (level2) only get's reseted and does not switch to Level Select scene.

    I programmed in Lv1 that when scene to lv2 is changed my attribute collect is set to 0 again, and in Level two, I programmed in the Level select button that when touch is pressed, attribute is set to 0 and scene is changed, but when I press the button, the scene just get's reseted...

    Please help with my failure :/ I tried different methods but non of them worked...

    Thanks
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Please one time,

    I need this really, then my app is finished and ready for testing :)

    Just one time....
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Okey the problem is the following:

    I have 15 levels, and when I play level one and I collected all stars, I come trough a button to my next level. When I play Level2 and I have collected all stars, a other button is showed up, when this button is pressed scene is returned to level select scene. But when I press this button most of the time my scene (level2) only get's reseted and does not switch to Level Select scene.

    I programmed in Lv1 that when scene to lv2 is changed my attribute collect is set to 0 again, and in Level two, I programmed in the Level select button that when touch is pressed, attribute is set to 0 and scene is changed, but when I press the button, the scene just get's reseted...

    Please help with my failure :/ I tried different methods but non of them worked...
    I also watched the videos and so on....

    Thank you guys

    Thanks
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Okey the problem is the following:

    I have 15 levels, and when I play level one and I collected all stars, I come trough a button to my next level. When I play Level2 and I have collected all stars, a other button is showed up, when this button is pressed scene is returned to level select scene. But when I press this button most of the time my scene (level2) only get's reseted and does not switch to Level Select scene.

    I programmed in Lv1 that when scene to lv2 is changed my attribute collect is set to 0 again, and in Level two, I programmed in the Level select button that when touch is pressed, attribute is set to 0 and scene is changed, but when I press the button, the scene just get's reseted...

    Please help with my failure :/ I tried different methods but non of them worked...
    I also watched the videos and so on....

    Thank you guys

    Thanks
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Nobody an idea?? :((
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    can I send it to you per email or? :)
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Okey sent :)
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Email sent again uptimistik :)
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Email comes in a minute!
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Sent
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    3 because there are 3 objects to collect ....

    The mouse inside are all completely emoted but still does not work :(
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    And in the button which make me going from level 1 to two just say when touch is pressed change attribute to 0 and change scene?

    Still does not work ://
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    I tried it with only level 2 and level select scene.... same failure again, I don't understand why this happens?

    I removed mouse position and did what you said uptimistik but still does not work ://
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Ok, what I don't understand is Load attribute, what is my key,what is my attribute and what is only level1 ?

    Thank you :)
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Yeah^^my fault....just one question, when I want my actor unmovable after level1stars = 3, I'd just say when attribute = 3 change self motion X to 0 or??
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Still does not work.... I am really pissed off :// Always the Level 2 gets loaded again when pressing next level oder level select :(
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Has someone some time to help me ? :)
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    I did everything as it should be, as you told me! Really!

    Just say me what to control or? Then I think the problem can be solved on my own!
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Okey just to compare:

    In my actor in Level one I have this,

    when collides with stars, change attribute star collect to star collect+1.
    when star collect=3, change level one completed to true.
    Save attribute star.collect, key:level1

    In my next level button I have,

    when star collect =3 change alpha color to 1
    when touch is pressed and level complete= true
    change scene level2.

    Thats what I have in each level, but for level 2 I have other attributes of course,
    does someone see a failure?

    Greetings Alex :)
Sign In or Register to comment.