Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Animated Cursor Displayable for Ren'Py

Displayable for highlighting buttons in an animated keyboard-friendly way. · By Devil Spiδεr

Newbie Question: how to use

A topic by corial created 33 days ago Views: 31 Replies: 2
Viewing posts 1 to 2
(1 edit)

Thanks for sharing such an interesting tool! I just had a question on where to add:

"define gui.focus_frame_image = "gui/overlay/cursor.png" # an image path as a string - make sure it exists!

define gui.slide_time = 0.2 # how long should the movement take

define gui.focus_warper = "linear" #  what easing function to use?

define gui.focus_padding = (0, 0) # how far away in pixels the corners of the displayable are from the actual focused button

## UPDATE 3/2/2024: Added a "pulse" feature which periodically makes the frame pulse in a sine-like pattern

define gui.focus_pulse_amp = 5 # how much (in pixels) the frame "pulses". Set to 0 to disable

define gui.focus_pulse_time = 1.0 # the period of the frame's "pulse"

Your notes say to put it at the end of a screen, but it'd be helpful to see an example of how it's meant to be indented in the screens rpy. 

Also, in the notes it says: [# add "focus_frame"] is this meant to be added as well? 

Developer(+1)

Add the supplied file into yout project and add

add "focus_frame"

at the end of any screen you want the displayable in. I’m more active in the official Ren’Py Discord server if you have more questions.

IT WORKS. Thank you! I'm sure this goes without saying, but I'll be sure to credit you when the game releases. :D