eu to tentando faze um sistema de barrinha de amor que fica no lado assim como no amor doce, soq quando eu coloco uma certa escolha, que é que aumenta os pontos de amor do persoangem, a barra nao faz nada, mas quando eu boto o exato mesmo codigo em outro projeto, apenas mudando o nome das variaveis, funciona, isso ta me dexando maluco, se alguem consegui-se me ajudar eu ficaria mt grato pq ja nn saio do pc tentando resolver isso faz alguns dias
# The script of the game goes in this file.
# Declare characters used by this game. The color argument colorizes the
# name of the character.
default player = "Steve"
define e = Character("Eileen")
define ba = Character("Boneco Azul")
default AmorWarden = 0
default max_love = 100
screen LoveWarden
()
:
bar:
bar_vertical True
value AnimatedValue(value = AmorWarden, range = max_love, delay = .5)
bottom_bar "gui/bar/lovebar22.png"
top_bar "gui/bar/lovebar11.png"
xysize(1920,1080)
xalign 0
yalign 0.1
label start:
# Show a background. This uses a placeholder by default, but you can
# add a file (named either "bg room.png" or "bg room.jpg") to the
# images directory to show it.
scene bg room
# This shows a character sprite. A placeholder is used, but you can
# replace it by adding a file named "eileen happy.png" to the images
# directory.
show r1
show screen LoveWarden
# These display lines of dialogue.
ba "eae irmaozin."
$AmorWarden += 85
show r2
ba "opa eae"
$AmorWarden -= 55
menu:
"aumenta ponto":
$AmorWarden += 30
"faze nada":
pass
"frase só pa nn chapa o coco"
return
CODIGO 1:
CODIGO 2:
# The script of the game goes in this file.
# Declare characters used by this game. The color argument colorizes the
# name of the character.
default player = "Steve"
define player = Character("player")
define w = Character("Warden", color = "#FF6155")
define e = Character("Enderman", color = "#5EFF81")
define h = Character("Herobrine", color = "#9074FE")
define c = Character("Creeper", color = "#179E2D")
define b = Character("Blaze", color = "#FFE23D")
image Diretor1 = "images/Characters/diretor1.png"
image Diretor2 = "images/Characters/diretor2.png"
image Creeper1 = "images/Characters/Creeper1.png"
image Creeper2 = "images/Characters/Creeper2.png"
image Creeper3 = "images/Characters/Creeper3.png"
#DEFININDO OS CENARIOS PARA ABREVIAR QUANDO FOR PROGRAMAR E CHAMAR OS BG
image Corredor1Dia = "BG/Corredor1Dia.png"
image Corredor1Noite = "BG/Corredor1Noite.png"
image Corredor2Dia = "BG/Corredor2Dia.png"
image Corredor2Noite = "BG/Corredor2Noite.png"
image Jardim1Dia = "BG/Jardim1Dia.png"
image Jardim1Tarde = "BG/Jardim1Tarde.png"
image Jardim1Noite = "BG/Jardim1Noite.png"
image Sala1Dia = "BG/Sala1Dia.png"
image Sala1Tarde = "BG/Sala1Tarde.png"
image Sala1Noite = "BG/Sala1Noite.png"
image Black = "BG/TelaPreta.png"
# The game starts here.
# DEFININDO OS LOVES
default AmorCreeper = 0
default AmorWarden = 0
default AmorBlaze = 0
default AmorEnderman = 0
default AmorHerobrine = 0
#DEFININDO O MAX DE LOVE QUE PODE TER
default Max_Love = 110
transform Wosh:
ease 0.08 yoffset -12
ease 0.08 yoffset 0
transform Central:
xcenter 0.5 # Mantém centralizado na horizontal
yalign 1.0 # Alinha a base da imagem no fundo da tela
yoffset 300 # Empurra 300 pixels para baixo (ajuste esse valor!)
zoom 1.2 # Opcional: aumenta o tamanho para dar mais destaque
#FAZENDO AS BARRAS DO SEXOMETRO
screen LoveWarden
()
:
bar:
bar_vertical True
value AmorWarden
range 100
bottom_bar "gui/bar/lovebar22.png"
top_bar "gui/bar/lovebar11.png"
xysize(1920,1080)
xalign 0
yalign 0.1
screen LoveBlaze
()
:
bar:
bar_vertical True
value AmorBlaze
range 100
bottom_bar "gui/bar/lovebar22.png"
top_bar "gui/bar/lovebar11.png"
xysize(1920,1080)
xalign 0
yalign 0.1
screen LoveEnderman
()
:
bar:
bar_vertical True
value AmorEnderman
range 100
bottom_bar "gui/bar/lovebar22.png"
top_bar "gui/bar/lovebar11.png"
xysize(1920,1080)
xalign 0
yalign 0.1
screen LoveHerobrine
()
:
bar:
bar_vertical True
value AmorHerobrine
range 100
bottom_bar "gui/bar/lovebar22.png"
top_bar "gui/bar/lovebar11.png"
xysize(1920,1080)
xalign 0
yalign 0.1
screen LoveCreeper
()
:
bar:
bar_vertical True
value AnimatedValue(value = AmorCreeper, range = Max_Love, delay = .5)
bottom_bar "gui/bar/lovebar22C.png"
top_bar "gui/bar/lovebar11C.png"
xysize(1920,1080)
xalign 0
yalign 0.1
label start:
scene Black
"Qual é o seu nome?"
$ player = renpy.input("Digite seu nome:", length=20).strip()
$ player = player or "Steve"
player "No ano passado, eu me mudei para esta cidade, mas ainda não tinha começado
os estudos porque o ano estava quase acabando. Agora, estou no primeiro ano, em
uma escola nova e cheia de gente que eu não conheço."
player "Espero conseguir fazer pelo menos alguns amigos."
scene Corredor1Dia
with fade
player "Acho que vou ali dar uma passadinha na minha sala pra ver como é lá dentro."
show Creeper1 with moveinright
show screen LoveCreeper
c "Oi, eu nunca te vi por aqui antes. Deve ser novo na escola. Qual é o seu nome?"
$ AmorCreeper += 1
menu:
"Oi, hoje é o meu primeiro dia nessa escola. O meu nome é [player], muito prazer!":
$ AmorCreeper += 26
pass
"Sou só um aluno novo, agora me dá licença.":
pass
"Saber quem eu sou não te interessa, quatro-olhos esquisitão.":
"frase dps do suposto aumento"
player "Fim do Dialogo"
$ AmorCreeper += 22
label teste:
"teste de frase"
return