Search found 56 matches
- Thu Feb 14, 2019 4:10 am
- Forum: Ren'Py Cookbook
- Topic: Inventory Screen
- Replies: 100
- Views: 87600
Re: Inventory Screen
To "ourdecemberdreams": https://lemmasoft.renai.us/forums/viewtopic.php?p=487926#p487926 I put after the "label start:" the "init -1 python:" and the bug mentioned by you "NameError: name 'inventory' is not defined" allthrough you defined it do no show up. You have " python:" right after the "label ...
- Wed Feb 13, 2019 6:55 pm
- Forum: Ren'Py Cookbook
- Topic: Inventory Screen
- Replies: 100
- Views: 87600
Re: Inventory Screen
I found out why the above error shows up = because the "specialoil" and other items is gone after I load the save game. So there is nothing to remove anymore. The starting item stays in the inventory, I also put the "Inventory = Inventory()" right before the item list and after the "label start:" he...
- Tue Feb 12, 2019 4:03 pm
- Forum: Ren'Py Cookbook
- Topic: Inventory Screen
- Replies: 100
- Views: 87600
Re: Inventory Screen
Need help. Using this code works well. But when i want to remove an item with "$ inventory.drop(specialoil)" this crash message comes: I'm sorry, but an uncaught exception occurred. While running game code: File "game/script.rpy", line 5026, in script $ inventory.drop(specialoil) File "game/script.r...
- Tue Feb 12, 2019 10:59 am
- Forum: Ren'Py Cookbook
- Topic: 49 mini game Renpy
- Replies: 54
- Views: 106930
Re: 12 mini games
Clicker mini-game bug in my version. Hello Andredron, I have the issue that the main "bg_farm0" do not show up on the "Win!", "Fail", or "Get ready!" messages as a background. The messages show up on empty/transparent bg. The bg shows up in and before game. Sprites also moving. -What did i wrong. -A...
- Fri Feb 01, 2019 2:32 pm
- Forum: Ren'Py Cookbook
- Topic: 49 mini game Renpy
- Replies: 54
- Views: 106930
Re: 12 mini games
Hello Andredron! I found what was going wrong. It was when I want the pics of the items to have the hover effect afte clicking. The trick is to not name the "figure1" etc. pics as "figure1_idle" but let them as "figure1" (without the "_idle") in the "game" ans "script" code and have pics such as "fi...
- Tue Jan 22, 2019 5:19 am
- Forum: Ren'Py Cookbook
- Topic: 49 mini game Renpy
- Replies: 54
- Views: 106930
Re: 12 mini games
Hello, thank you for help. The mini game code I use is attached above "game.rpy" and in my game directory .And the code where the player has to work (the Smith shop) I posted above too. What variable you think is going wrong? I also add the value "res = False" in my main "script.rpy before game star...
- Mon Jan 21, 2019 9:09 am
- Forum: Ren'Py Cookbook
- Topic: 49 mini game Renpy
- Replies: 54
- Views: 106930
Re: 12 mini games
Hello, thank you for help. (I use the "spoiler" [][/] command, like the "code" but will not work, to hide the long text here.) I downloaded the code and project. Put a "game.rpy" (that I updated with english text, and my images/sound data info) in my dir. I put a "res = False" before game start. But...
- Fri Jan 18, 2019 5:04 pm
- Forum: Ren'Py Cookbook
- Topic: 49 mini game Renpy
- Replies: 54
- Views: 106930
Re: 12 mini games
The "Search for Items" game do not work for me. Code from page 1: https://lemmasoft.renai.us/forums/viewtopic.php?p=478861#p478861 (has two (or more, you get them pasting here) spacing -space- errors, "maxLen + = 1" has to be "maxLen += 1" and "if oLast> = 0:" has to be "if oLast> = 0:" and oLen + =...
- Mon Dec 24, 2018 9:03 am
- Forum: Ren'Py Cookbook
- Topic: Inventory Screen
- Replies: 100
- Views: 87600
Re: Inventory Screen
EDIT: Just noticed today, creating images, I use the 300x300 resolution for the item images. Not the standard 150x150. This means my code is optimized for 300x300. Hello, I changed now two variables to made the horizontal spacing between the items fit. Changed: $ y += 170 to 240. in this 2nd part: ...
- Sun Dec 23, 2018 4:59 am
- Forum: Ren'Py Cookbook
- Topic: Inventory Screen
- Replies: 100
- Views: 87600
Re: Inventory Screen
Hello, for now I advanced. I had to use the 150x150 item pics. Not my upscaled 300x300. And made the bg for my test not transparent. Then zoom them from 0.0 to 0.66 change xanchor 0.5 to 0.0 in the lower part of the code. This is for align all three. On the upper 1st part I changed $ x = 515 to 717 ...
- Fri Dec 14, 2018 10:42 am
- Forum: Ren'Py Cookbook
- Topic: Inventory Screen
- Replies: 100
- Views: 87600
Re: Inventory Screen
Hello, I need some help, I made it to show up in my game. And I made it to to show/hide with a imagebutton. I scaled the background image to fit from 1366x768 to my 1920x1080 resolution. But now the items and descriptions for them are out of place of course. I try to change the x+y coordinates. This...
- Mon Nov 26, 2018 3:05 pm
- Forum: Ren'Py Cookbook
- Topic: Layered Parallax Code
- Replies: 19
- Views: 11479
Re: Layered Parallax Code
I solved my issue with not showing up characters adding another layer ("inyoureye") to the code and display all tree character pics I needed on that layer: init 800 python: class MouseParallax(renpy.Displayable): def __init__(self,layer_info): super(renpy.Displayable,self).__init__() self.xoffset,se...
- Sun Nov 25, 2018 8:36 am
- Forum: Ren'Py Cookbook
- Topic: Layered Parallax Code
- Replies: 19
- Views: 11479
Re: Layered Parallax Code
The first code example works fine for me (The second code is missing some parameters). I use 4 layers. Now I want put another pic with transparent bg (a character standing there as background) over/on top the 4 layers depending on the situation in my game. And show only the 4 layers again without th...
- Tue Oct 30, 2018 4:05 pm
- Forum: Ren'Py Questions and Announcements
- Topic: "Moving" Camera Effect
- Replies: 3
- Views: 803
Re: "Moving" Camera Effect
Hello "mahoop" for a zoom out I wrote such a code, you can reverse it, for a zoom in (the pic is the "intro004pn91"): (Edit: why the "spoiler" do not work?) show intro004pn91: xalign 0.5 yalign 0.2 zoom 08.5 pause 0.01 hide intro004pn91 show intro004pn91: xalign 0.5 yalign 0.2 zoom 08.4 pause 0.01 h...
- Tue Oct 30, 2018 4:01 pm
- Forum: Ren'Py Cookbook
- Topic: Affection Points
- Replies: 25
- Views: 23234
Re: Affection Points
With help from the "f95zone" I was able to get the desired show up of the hud icons adding a "zorder -1" command under the "imagemap:" in my "script" file: label go_home: show AShipStage2A0041_idle with dissolve show Elie_stand_ssuit001 at left with dissolve e "I chose to go to my room to take a loo...