He linked to the Documentation for it which explains a bunch of things real nicely as well.
But I am afraid, my non-programmer card is showing cause I have no clue how to change the image of my dragable based on it's state.
The wiki says this:
What I understand from that is that there's four default images I can set:A Drag has one child. The child's state reflects the status of the drag and drop operation:
- selected_hover - when it is being dragged.
- selected_idle - when it can be dropped on.
- hover - when the draggable will be dragged when the mouse is clicked.
- idle - otherwise.
- the object when it's untouched (idle)
- the object when the mouse is hovering over it aka it shows it can be picked up (hover)
- the object while actively being held (selected_hover)
- the object when it is being held over a droppable (selected_idle)
Based on the video tutorial I have this code:
Code: Select all
drag:
drag_name "shirt"
child "Shirt.jpg"
xpos 100
ypos 100
draggable True
droppable False
dragged drag_placed
drag_raise True
Code: Select all
child auto "Shirt_%s.jpg"
Code: Select all
child
hover "Shirt_hover.jpg"
idle "Shirt_idle.jpg"
I used the search function on the Wiki for "child" which brought me to the ATL page which kept mentioning child, so I thought that maybe I can simply put
Code: Select all
image auto "Shirt_%s.jpg"
Code: Select all
child auto "Shirt_%s.jpg"
Can anyone give me the short and easy on how to tell Renpy which image file to look at for what state?