Search found 5 matches

by vitorfgd
Fri Feb 28, 2020 10:17 pm
Forum: Ren'Py Questions and Announcements
Topic: Multiple imagebuttons inside a frame on screen are blocking a transform.
Replies: 3
Views: 386

Re: Multiple imagebuttons inside a frame on screen are blocking a transform.

I managed to solve the problem with a differente approach, I'm posting here for future references: screen aim_screen(dict, counter): timer 3.0 action [SetDict(dict, str(counter), False), Hide("aim_screen"), Return(0)] frame: background None at transform: align (renpy.random.random(), renpy...
by vitorfgd
Fri Feb 28, 2020 10:05 pm
Forum: Ren'Py Questions and Announcements
Topic: Multiple imagebuttons inside a frame on screen are blocking a transform.
Replies: 3
Views: 386

Re: Multiple imagebuttons inside a frame on screen are blocking a transform.

I've changed the original code as suggested, making it simpler: screen aim_screen(dict, counter): timer 3.0 action [SetDict(dict, str(counter), False), Hide("aim_screen"), Return(0)] frame: background None fixed: maximum (64, 64) at transform: align (renpy.random.random(), renpy.random.ran...
by vitorfgd
Thu Feb 27, 2020 7:51 pm
Forum: Ren'Py Questions and Announcements
Topic: Multiple imagebuttons inside a frame on screen are blocking a transform.
Replies: 3
Views: 386

Multiple imagebuttons inside a frame on screen are blocking a transform.

I'm creating an aim mechanic for my game. It's a simple circle with three rings, one bigger than the other that return some points when clicked and vanish after a few seconds. In order to make that work, I've created the following code: transform fadein_timed(): alpha 0.0 xalign renpy.random.random(...
by vitorfgd
Sun Feb 16, 2020 7:21 pm
Forum: Ren'Py Questions and Announcements
Topic: How can I combine a created image with a imagebutton to use it in a screen:
Replies: 4
Views: 447

Re: How can I combine a created image with a imagebutton to use it in a screen:

gas wrote: Sun Feb 16, 2020 7:10 pm EDIT.

No wait, did you tried

Code: Select all

imagebutton idle solid
?
Yeah I did, no matter where i put the image

Code: Select all

solid:
definition I always get

Code: Select all

name 'solid' not defined
.
by vitorfgd
Sun Feb 16, 2020 6:07 pm
Forum: Ren'Py Questions and Announcements
Topic: How can I combine a created image with a imagebutton to use it in a screen:
Replies: 4
Views: 447

How can I combine a created image with a imagebutton to use it in a screen:

I'm developing a " hit the target " game and I've gone as far as randomly creating a new path for my target. My problem right now is that I'm creating a image using Solid() and this needs to be a imagebutton that i can use inside a screen that will be called on a minigame, here's my code: ...