Search found 42 matches

by Rnot2000
Tue Dec 26, 2023 11:09 pm
Forum: Ren'Py Questions and Announcements
Topic: Any idea to scale image map ???
Replies: 1
Views: 268

Any idea to scale image map ???

Any idea to scale image map ??? i got error with this code

Code: Select all

default imagemap_scale = 1.5

screen test:
    imagemap:
        ground "#ffffff00"
        zoom imagemap_scale
by Rnot2000
Sat Dec 23, 2023 2:02 am
Forum: Ren'Py Questions and Announcements
Topic: any idea to getting mouse position in a screen continuously
Replies: 1
Views: 692

any idea to getting mouse position in a screen continuously

hello guys, any idea to getting mouse position in a screen continuously?
by Rnot2000
Mon Nov 13, 2023 12:30 am
Forum: Ren'Py Questions and Announcements
Topic: Help about showing text
Replies: 1
Views: 392

Help about showing text

init python: bag = ["","apple","banana","pear"] screen bag : vbox: for i in range(1,3): text "[bag[i]]" label start: call screen bag i want to show all the item inside bag but it causes error TypeError: list indices must be integers, not unicode Any...
by Rnot2000
Fri Oct 13, 2023 12:22 am
Forum: Ren'Py Questions and Announcements
Topic: animation laggy on android port
Replies: 2
Views: 665

Re: animation laggy on android port

PyTom wrote: Mon Oct 09, 2023 8:14 pm What kind of device do you have? In general, Android devices are less powerful than PCs, so it's quite possible that's the cause.
i see that's make sense... Thanks PyTom :D ... sorry for late reply
by Rnot2000
Mon Oct 09, 2023 3:52 am
Forum: Ren'Py Questions and Announcements
Topic: animation laggy on android port
Replies: 2
Views: 665

animation laggy on android port

my animation seems laggy when i played it on android, but it's fine on pc...

any idea ? :(
by Rnot2000
Sun Oct 01, 2023 10:53 am
Forum: Ren'Py Questions and Announcements
Topic: how to write on screen ?
Replies: 4
Views: 218

Re: how to write on screen ?

screen number: vbox: for i in range(1, 101): text "no[i]" Here you can learn more about for loops in general: https://www.w3schools.com/python/python_for_loops.asp can it become textbutton and use action ? like textbutton "no.1" action SetVariable("Choose", 1)
by Rnot2000
Sun Oct 01, 2023 8:08 am
Forum: Ren'Py Questions and Announcements
Topic: how to write on screen ?
Replies: 4
Views: 218

Re: how to write on screen ?

m_from_space wrote: Sun Oct 01, 2023 7:10 am

Code: Select all

screen number:
    vbox:
        for i in range(1, 101):
            text "no[i]"
Here you can learn more about for loops in general: https://www.w3schools.com/python/python_for_loops.asp
THANK YOUUUUUUUUUUUUUUUUUUUUUUUUU
by Rnot2000
Sun Oct 01, 2023 3:12 am
Forum: Ren'Py Questions and Announcements
Topic: how to write on screen ?
Replies: 4
Views: 218

how to write on screen ?

Code: Select all

screen number:
    text "no1"
    text "no2"
    text "no3"
    .
    .
    .
    .
    .
    .
    .
    text "no100"
instead write it from 1 to 100, is there any simple code ?
thx
by Rnot2000
Fri Sep 29, 2023 1:22 am
Forum: Ren'Py Questions and Announcements
Topic: How to set Minimium bar value below zero
Replies: 1
Views: 194

How to set Minimium bar value below zero

Code: Select all

bar value FieldValue(store, 'love', range=10, max_is_zero=False, offset=0, step=1) 
if i use max_is_zero=False it set the minimum value to 0
how can i set the minimum below 0 (like -10)

any solution, Thanks
by Rnot2000
Fri Sep 29, 2023 1:19 am
Forum: Ren'Py Questions and Announcements
Topic: asking about Variable
Replies: 2
Views: 256

Re: asking about Variable

Ocelot wrote: Thu Sep 28, 2023 1:01 am

Code: Select all

$ total_item = len(item) - 1
#  total amount (4) ↑      ↑ Substract 1 to ignore item 0
tHANK YOU :)
by Rnot2000
Wed Sep 27, 2023 10:50 pm
Forum: Ren'Py Questions and Announcements
Topic: asking about Variable
Replies: 2
Views: 256

asking about Variable

Code: Select all


$ item = [0,apple,tomato,mango]

$ total_item = ??? # <is there any code to count it 3 ?

Hello Guys. is there any code to count 'total_item' to 3 ?
Thanks
by Rnot2000
Mon Sep 25, 2023 1:27 pm
Forum: Ren'Py Questions and Announcements
Topic: Help, ask about AlphaMask
Replies: 2
Views: 355

Help, ask about AlphaMask

image eye_ball : "eye_ball.png" yanchor 0.5 image eye_white : "eye_white.png" yanchor 0.5 image eye_mask : AlphaMask("eye_ball" , "eye_white" ) label start: call screen eye screen eye: add "#ffffff50" add "eye_mask" Hello, i tried to mask ...
by Rnot2000
Thu Sep 14, 2023 10:08 am
Forum: Ren'Py Questions and Announcements
Topic: help... Writing "if"
Replies: 1
Views: 267

help... Writing "if"

Code: Select all

#instied of writing like this:

if player1 == 0 or player2== 0 or player3 == 0:
    $ player = "dead"

# can i write like this ?

if player1 == 0,
or player2 == 0,
or player3 == 0:
   $ player = "dead"   #it give me an error
any idea :( ?
by Rnot2000
Sat Aug 26, 2023 4:22 am
Forum: Ren'Py Questions and Announcements
Topic: Game slowing down when showing many Text
Replies: 6
Views: 415

Re: Game slowing down when showing many Text

At some point every computer is going to slow down if you feed it enough calculations per second (and I don't mean those additions inside the timer, although that could be done more efficiently). In your case you force Renpy to draw 100 different text objects, that also change every 0.01 seconds an...
by Rnot2000
Sat Aug 26, 2023 1:59 am
Forum: Ren'Py Questions and Announcements
Topic: Game slowing down when showing many Text
Replies: 6
Views: 415

Game slowing down when showing many Text

My game slowing down when i show many Text on screen... using renpy 7.4.9.2 here's my test code : init python: var1 = 0 var2 = 0 var3 = 0 var4 = 0 var5 = 0 var6 = 0 var7 = 0 var8 = 0 var9 = 0 var10 = 0 var11 = 0 var12 = 0 var13 = 0 var14 = 0 var15 = 0 var16 = 0 var17 = 0 var18 = 0 var19 = 0 var20 = ...