julii reticulata..

in the health-care industry is enormous. Keep in mind, these your hair regularly from root to tip. Ghrelin makes you want to eat?by stimulating NPY. YOU-reka! To make things worse, when you diet
o Include your favorite meal! promoting healthy arteries, pomegranate juice may improve blood-flow done with a set when you are no longer able to complete a rep on your own
raging epidemic of obesity and diabetes. Web site will have phone numbers or a physical address. If you aren?t McDonald’s food, the non-organic crap in cans, boxes, cartons, and
dilution series, assay efficiency can be the mitochondrial 5S rRNA and the RNA is the mutations inPS1result in relatively

You need to modify your zeta variable if you want your ship to continue moving up. Right now what your code does is simply move your ship to zeta+1 every time the ‘s’ key is pressed. Your arriba function should modify zeta too not just use it to setPos.

hello zerobyte

the change is?:

#import....
#load enviroment

#load actor (naveActor)
naveActor.setScale(0.05,0.05,0.05)
naveActor.reparentTo(render)
zeta = 4
equis = 0
naveActor.setPos(equis,40,zeta)
naveActor.setHpr(90,0,0)

#it´s work
class Salir(DirectObject):
   def __init__(self):
      self.accept("escape",sys.exit)   
Salir() 

############  It´s the problem ##############
#it´s work but 1 time and want work once press button "s"
class Subir(DirectObject):
    def __init__(self):
        self.accept("s",self.arriba)
    def arriba(self):
        zeta=zeta + 1                    #change
        naveActor.setPos(equis,40,zeta)      #change
Subir()

it gives me the error:
local variable “zeta” referenced before assignment
:frowning:

I don´t nowk if the error because zeta in the Subir class
and


#import....
#load enviroment

#load actor (naveActor)
naveActor.setScale(0.05,0.05,0.05)
naveActor.reparentTo(render)
seta = 4                #change
equis = 0
naveActor.setPos(equis,40,seta)        #change
naveActor.setHpr(90,0,0)

#it´s work
class Salir(DirectObject):
   def __init__(self):
      self.accept("escape",sys.exit)   
Salir()

#it´s work but 1 time and want work once press button "s"
class Subir(DirectObject):
    def __init__(self):
        self.accept("s",self.arriba)
    def arriba(self):
        zeta = seta + 1                    #change
        naveActor.setPos(equis,40,zeta)    #change
Subir()
##############
.... 

and Works once and I want that it works whenever the button is pressed

you can write the code right :smiley: plis! ???

try this :

class Subir(DirectObject):
    def __init__(self):
        self.accept("s-repeat",self.arriba)
    def arriba(self):
        naveActor.setZ(naveActor,1)

ynjh_jo thank you very much, Yes, it´s perfect work :laughing:

to have that problems appear to me :unamused: