Search found 13 matches

by Gian
Tue Jul 04, 2017 5:24 am
Forum: Ren'Py Questions and Announcements
Topic: Change cursor and "click sound" ingame
Replies: 2
Views: 519

Re: Change cursor and "click sound" ingame

Thanks but I don't understand how to use it to solve my problem. I just need a way to add a "bang" sound on every mouse click in at a certain point of the game.
Thanks anyway :wink: :wink: :wink:
by Gian
Mon Jul 03, 2017 5:57 pm
Forum: Ren'Py Questions and Announcements
Topic: Change cursor and "click sound" ingame
Replies: 2
Views: 519

Change cursor and "click sound" ingame

Hi, Another problem in my click and shoot mini-game... Thanks to this code I can change the cursor from arrow to a crosshair. Now I would like to call my "bang.mp3" sound everytime i click the mouse as long as the cursor is a crosshair (cursor2.png) and restore the default sound (no sound ...
by Gian
Mon Jul 03, 2017 5:03 pm
Forum: Ren'Py Questions and Announcements
Topic: Screens and hotspots time option [SOLVED]
Replies: 2
Views: 499

Re: Screens and hotspots time option

It works! thank you... Now I can die!!!! :lol: :lol: :lol: :lol: :lol:
by Gian
Sun Jul 02, 2017 10:24 am
Forum: Ren'Py Questions and Announcements
Topic: Screens and hotspots time option [SOLVED]
Replies: 2
Views: 499

Screens and hotspots time option [SOLVED]

Hi, I'm working on my first ren'py game and I would like to add a little "click and shoot" game inside the visual game. I created a screen but I don't know how to add a "time option" on it. I would like that after one or two seconds the enemy in the hotspot shoots (with the "...
by Gian
Fri Jun 16, 2017 11:57 am
Forum: Ren'Py Questions and Announcements
Topic: Change cursor and his "click" coordinates [SOLVED]
Replies: 2
Views: 541

Re: Change cursor and his "click" coordinates [SOLVED]

So easy??????
I feel so stupid :lol: :lol: :lol: :lol:
Thank you!!!!!
by Gian
Fri Jun 16, 2017 9:30 am
Forum: Ren'Py Questions and Announcements
Topic: Change cursor and his "click" coordinates [SOLVED]
Replies: 2
Views: 541

Change cursor and his "click" coordinates [SOLVED]

Hi, first thank you for your help!!! I have a new problem with my game script. During the game I'd like to change the mouse cursor for a little "click and shot" game. I have found this useful code: init 1 python: def change_cursor(type="default"): persistent.mouse = type if type ...
by Gian
Thu Jun 15, 2017 5:12 pm
Forum: Ren'Py Questions and Announcements
Topic: Very simple onscreen inventory [SOLVED]
Replies: 6
Views: 933

Re: Very simple onscreen inventory [SOLVED]

Thank you, problem solved. There was another little problem, everytime I close the inventory, the dialogue goes one step on. I removed the option "return" from the textbutton options and now all goes well. I hope it was the right thing to do. Thank you again Scribbles and trooper6 :D :D :D
by Gian
Tue Jun 13, 2017 6:30 pm
Forum: Ren'Py Questions and Announcements
Topic: Very simple onscreen inventory [SOLVED]
Replies: 6
Views: 933

Re: Very simple onscreen inventory

Hi, thanks thanks thanks thanks for your help. :D :D :D I used both suggestions and I made this... screen inventory_screen: add "gui/inventory.png" modal True hbox align (.95,.04) spacing 20: textbutton "Close Inventory" action [ Hide("inventory_screen"), Show("inv...
by Gian
Mon Jun 12, 2017 11:03 am
Forum: Ren'Py Questions and Announcements
Topic: Very simple onscreen inventory [SOLVED]
Replies: 6
Views: 933

Very simple onscreen inventory [SOLVED]

Hi, I would like to create a very simple onscreen inventory recallable with a textbutton up on the right (on the left I have the money amount). I would see in this inventory images or text name of all I "append" during the game. No action if I click the object (I will add and remove them s...
by Gian
Wed Jun 07, 2017 5:12 am
Forum: Ren'Py Questions and Announcements
Topic: Money system and negative values [SOLVED]
Replies: 6
Views: 3034

Re: Money system and negative values

Thanks..... I think imagebuttons could be the right way
by Gian
Wed Jun 07, 2017 4:14 am
Forum: Ren'Py Questions and Announcements
Topic: Money system and negative values [SOLVED]
Replies: 6
Views: 3034

Re: Money system and negative values

Hi, using your precious suggestion I made this.... ######################### menu: "bullets for 60$": if dollars >= 60: $ dollars -= 60 $ items.append("bullets") M "just what I needed" else: "Hmm, I don't have enough to buy this." jump armory2 "colt for 1...
by Gian
Mon Jun 05, 2017 8:24 pm
Forum: Ren'Py Questions and Announcements
Topic: Money system and negative values [SOLVED]
Replies: 6
Views: 3034

Re: Money system and negative values

Thats a little outdated. Make sure you have default coins = 0 somewhere before your start label. I only skimmed it, but however you deduct coins, make sure to check coins => item value. Something like #item costs 5 coins, you have 3 if coins >= [item]: $ coins -= [item] else: "Hmm, I don't hav...
by Gian
Mon Jun 05, 2017 5:02 pm
Forum: Ren'Py Questions and Announcements
Topic: Money system and negative values [SOLVED]
Replies: 6
Views: 3034

Money system and negative values [SOLVED]

Hi, My name is Gian, I'm new in the Forum and I'm a Ren'py beginner. I would like to create a simple game with money system. I used the simple code in example 1 found here: https://www.renpy.org/wiki/renpy/doc/cookbook/Inventory_and_Money_System. The problem is that if I keep buying items the money ...