How to have an image move next to the cursor?[SOLVED]

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
namastaii
Eileen-Class Veteran
Posts: 1350
Joined: Mon Feb 02, 2015 8:35 pm
Projects: Template Maker for Ren'Py, What Life
Github: lunalucid
Skype: Discord: lunalucid#1991
Soundcloud: LunaLucidMusic
itch: lunalucid
Location: USA
Contact:

How to have an image move next to the cursor?[SOLVED]

#1 Post by namastaii »

I'm wondering the best way to display an image (in this case it'll be a small solid color square) next to the cursor after clicking an event. It will come and go and I looked into get mouse x,y but there wasn't much on it and what I'm wondering about specifically is something that will actually move with the cursor if possible?

It'll basically mimic picking up something and dropping it but they aren't actually picking up the actual object is the thing so using drag isn't really what I want and I want the object beside the cursor, not under it. (I think. I could change my mind about that)

Is this too complex? Or am I better off using an if statement and having a draggable image appear that is automatically grabbed by the mouse and goes away when clicking the next object?

I hope this makes sense..

It'd be easier to be able to change the cursor in this way or something but I'm pretty sure you can only assign the cursor once?
Last edited by namastaii on Tue Aug 13, 2019 6:40 pm, edited 1 time in total.

User avatar
Alex
Lemma-Class Veteran
Posts: 3094
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: How to have an image move next to the cursor?

#2 Post by Alex »

Have you seen this thread - viewtopic.php?f=51&t=47205?

User avatar
namastaii
Eileen-Class Veteran
Posts: 1350
Joined: Mon Feb 02, 2015 8:35 pm
Projects: Template Maker for Ren'Py, What Life
Github: lunalucid
Skype: Discord: lunalucid#1991
Soundcloud: LunaLucidMusic
itch: lunalucid
Location: USA
Contact:

Re: How to have an image move next to the cursor?

#3 Post by namastaii »

I have not, I'll look into it now

User avatar
namastaii
Eileen-Class Veteran
Posts: 1350
Joined: Mon Feb 02, 2015 8:35 pm
Projects: Template Maker for Ren'Py, What Life
Github: lunalucid
Skype: Discord: lunalucid#1991
Soundcloud: LunaLucidMusic
itch: lunalucid
Location: USA
Contact:

Re: How to have an image move next to the cursor?

#4 Post by namastaii »

this looks perfect for what I need I think, thank you

Post Reply

Who is online

Users browsing this forum: No registered users