Search found 6 matches

by foxpoet
Thu Jul 23, 2015 9:34 am
Forum: Ren'Py Questions and Announcements
Topic: How to listen for mouse input to rotate image
Replies: 11
Views: 1696

Re: How to listen for mouse input to rotate image

I saw that there was a ui function for rotation so now I set things up like this and it seems to work fine! Thanks for all the help I hope everything will work now! :) init: $ color_wheel = True $ rotation = 1 $ config.keymap['rollforward'].remove('mousedown_5') $ config.keymap['rollback'].remove('m...
by foxpoet
Thu Jul 23, 2015 7:47 am
Forum: Ren'Py Questions and Announcements
Topic: How to listen for mouse input to rotate image
Replies: 11
Views: 1696

Re: How to listen for mouse input to rotate image

I can imagine what you need but I'm not sure if I can explain what is in my mind. you can define another variable and use few "if" commands to set it by comparing the value of delta. this way you'll get smooth rotation with jumpy/sticky choices if delta < 25: somevalue = 1 if delta > 25 a...
by foxpoet
Thu Jul 23, 2015 7:24 am
Forum: Ren'Py Questions and Announcements
Topic: How to listen for mouse input to rotate image
Replies: 11
Views: 1696

Re: How to listen for mouse input to rotate image

Ah it works now! init: $ color_wheel = True $ rotation = 1 $ config.keymap['rollforward'].remove('mousedown_5') $ config.keymap['rollback'].remove('mousedown_4') python hide: def color_wheel(): if color_wheel: ui.image(str(rotation) + ".jpg") config.overlay_functions.append(color_wheel) sc...
by foxpoet
Thu Jul 23, 2015 7:04 am
Forum: Ren'Py Questions and Announcements
Topic: How to listen for mouse input to rotate image
Replies: 11
Views: 1696

Re: How to listen for mouse input to rotate image

What's the spec for the wheel anyway? Does the mouse wheel trigger it? What about computers without a mouse wheel - or a mouse? Yes, the idea is that the mouse wheel triggers it. So when you scroll down, it rotates to the right and scroll up makes it rotate left. Originally I wanted to be able to c...
by foxpoet
Wed Jul 22, 2015 7:17 pm
Forum: Ren'Py Questions and Announcements
Topic: How to listen for mouse input to rotate image
Replies: 11
Views: 1696

Re: How to listen for mouse input to rotate image

Hello again, I realize that my way of doing this is very wrong... but I figured it might serve my needs for this prototype I'm building. I decided to use UI to represent the wheel because I couldn'get it to show up on top of my imagemap. init: $ color_wheel = True $ rotation = "1" python h...
by foxpoet
Wed Jul 15, 2015 1:35 am
Forum: Ren'Py Questions and Announcements
Topic: How to listen for mouse input to rotate image
Replies: 11
Views: 1696

How to listen for mouse input to rotate image

http://i.imgur.com/KYFUA9j.png?2 I have made an imagemap to make a dialogue menu (please excuse the placeholder graphics :D) and I want to enable the player to rotate the color wheel by using the scroll-wheel (I originally wanted the player to drag the wheel but my programming knowledge is far too ...