When i touch the scene start to blink

kajutokajuto Member Posts: 314
edited February 2012 in Miscellaneous
hi therez!! recently i made a level menu when i touch the level 1 i enter to play when i lose, it show a Lose Menu and a button called Level Menu and when i want to play again the level 1 , the scene start to blink, why?~?~?~?~??~?~? i'm dunno.... =-(

Help, thaks in advance

Comments

  • POMPOM Member Posts: 2,599
    edited February 2012
    It sounds like when the second time you play (after you lost in the first play) you did not reset your attributes , therefore it jumps to the game over screen and back and forth,
    When you start a new game, you need to reset all the attributes involved ..

    And by the way this is not miscellaneous at all ;)
    Roy
  • CloudsClouds Member Posts: 1,599
  • POMPOM Member Posts: 2,599
    edited February 2012
    Lol @Tynan
    Backed up to my folder..
    Photobucket

    Roy.
  • kajutokajuto Member Posts: 314
    what u mean?
  • POMPOM Member Posts: 2,599
    edited February 2012
    @kajuto
    Just ignore use mate.. ;)
    As for your problem , you said :
    "when i want to play again the level 1"

    When you want to play again you need to reset your attributes for the new play , like if you have an attribute called "game over" reset it back to false etc ..

    Roy.
  • kajutokajuto Member Posts: 314
    u mean for example, i have a collect actor called apple let say.., let say i started playing and collect 1 apple and i fall down and i lose when i come back to play again the same level, i have to reset att for the new play by resetting it back to false with the apple actor?
  • POMPOM Member Posts: 2,599
    Let's take it step by step, when you lose in your game, what rule do you have to go to the "lose screen"
    Roy.
  • kajutokajuto Member Posts: 314
    (Rule
    when touch is pressed
    -change image
    -change scene to Level Menu, otherwise change image
    -when touch is pressed
    -play music) all that in the Level Menu Button inside the "Lose Scene"
  • POMPOM Member Posts: 2,599
    Ok , honestly i didn't understand that ..
    If you want , you can send me the project file to - roysadaka (at) gmail (dot) com
    and ill take a look at the problem .

    Cheers.
    Roy.
  • kajutokajuto Member Posts: 314
    Sorry, i can't, it not that i don't trust u, the info is confidential and my boss won't let me send to you =-(
  • kajutokajuto Member Posts: 314
    in the scene, Level 1 i have 2 falling objects and one bad guys, maybe that affect every time i come back to level 1? because that happen when i have contact with the falling object when i collected o collide with the bad guy actor, when i fall down i put a lose scene and i fell and come touch the level menu button in the lose scene, nothing happen, only happen when i have contact with the falling object or the bad guy
  • kajutokajuto Member Posts: 314
    i found the issue, only happen when my health bar reach to 0, how can i reset to 100 when the player reach to 0 in the health bar ?
  • POMPOM Member Posts: 2,599
    You have a boss for gamesalad ?!

    When you reset your scene , just before you make the reset ,
    change attribute "health bar" to 100

    Roy.
  • kajutokajuto Member Posts: 314
    yes, kind of, he's paying me for this, that's why.

    the health bar width is 100, and when it reach to 0 if i want to recover the health bar to full, is 100 right the same of the width of the bar?
  • POMPOM Member Posts: 2,599
    edited February 2012
    You ask me? i don't know whats going on in your project ;)
    Have you tried the "reset scene" behavior ?

    Mate if you can't send over the project you gonna have to be more informative , either upload some images of the code or make a video that shows the problem.
    Its impossible to understand what you are asking with so little info.

    Roy.
  • kajutokajuto Member Posts: 314
    in the game
    1) game attri i put a index called health bar , in the middle i set to 10
    2) in the health bar actor i put 2 constraint like T-shirtbooth did
    a) constrain self size width to game health bar * 10
    b) constrain self position x to 10+(self size width/2)
    3) inside this same actor a rule
    When Att game health bar = 0
    after that i put a pause game behavior that go to the Lose Menu Scene
    4) Also a Change Att
    a) game collectable item to game collectable +1

    that's the game is side scrolling like mario, when collected a item +1 and other item -1 , when the health bar reach to 0 and i play again the same level it blink, only when the health bar reach to 0, but when i fell down it show the same lose menu scene and i try to play again it's doesn't happen anything, so i deduce the prob is the health bar
  • POMPOM Member Posts: 2,599
    So if the problem is in the health bar, once you reset the game change the attribute back to 100

    Roy.
  • kajutokajuto Member Posts: 314
    i didn't use any reset game or reset scene for anything, where and how i should put the reset scene? or should i use reset game?
Sign In or Register to comment.