Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Inventory and mouseclick() issue

Author
Message
Levanthus
23
Years of Service
User Offline
Joined: 17th Apr 2003
Location: Cumbria, UK
Posted: 8th Aug 2014 16:17
Ok i have a strange problem going on and i don't get why it's doing it... i have my little inventory as so:-

now i currently have it where if i hover over any of the itmes in the inventory, the name of the item appears in the top left with all my debug information using this piece of code:-

Sprite 1999 being the mouse pointer... Now as previously stated when i hover over any item, it works fine HOWEVER.. if i add a Mouseclick()>0 it will only work on the first item in the inventory and nothing in any of the subsequent slots... can anyone possibly explain why this might be happening?

I can see from your smile, you're not here for the sunset

Windows 7 64 bit, AMD Phenom II x4 Black edition, 7 GB Ram, Radeon HD 4650, 3.6 TB HDD
Libervurto
20
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 8th Aug 2014 16:27
How are you adding the mouseclick()? Show us that code.

Formerly OBese87.
Levanthus
23
Years of Service
User Offline
Joined: 17th Apr 2003
Location: Cumbria, UK
Posted: 8th Aug 2014 16:29
If sprite collision(1999,0) and mouseclick()
print InvThing(sprite collision(1999,0)).ItemName
ENDIF

Simple as that

I can see from your smile, you're not here for the sunset

Windows 7 64 bit, AMD Phenom II x4 Black edition, 7 GB Ram, Radeon HD 4650, 3.6 TB HDD
Levanthus
23
Years of Service
User Offline
Joined: 17th Apr 2003
Location: Cumbria, UK
Posted: 8th Aug 2014 19:53
Ok i fixed that problem but now i'm having epic problems with the Array i'm using for it... i'm not very good with arrays and it's battering my loaf...

I can see from your smile, you're not here for the sunset

Windows 7 64 bit, AMD Phenom II x4 Black edition, 7 GB Ram, Radeon HD 4650, 3.6 TB HDD
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 9th Aug 2014 23:43
[OffTopic]

Quote: "battering my loaf..."




I got to visit Cumbria!

[/OffTopic]

Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 10th Aug 2014 00:49
Quote: "it's battering my loaf"


I can just about stomach chip butties but a battered loaf is a step too far.



Powered by Free Banners

Login to post a reply

Server time is: 2026-07-08 10:38:51
Your offset time is: 2026-07-08 10:38:51