Search found 8 matches

by Cyber Spider
Thu Jul 06, 2023 7:18 am
Forum: General Discussion
Topic: Purchase questions
Replies: 2
Views: 6974

Re: Purchase questions

Hi,

Sorry to bump this, but I still would like an answer to my questions if possible. Otherwise I will take my money elsewhere. The questions in particular I want answers to are # 2, 3 & 4.

Thanks
by Cyber Spider
Thu Jul 06, 2023 7:14 am
Forum: General Discussion
Topic: Purchase questions
Replies: 2
Views: 6974

Purchase questions

I am very interested in purchasing Spiderbasic as my birthday is coming up, and I have a few questions:

1) Do you offer any discounts to students? I can contact you via my student email as proof. What about for open source projects?

2) After the initial purchase, how much is it to renew it for ...
by Cyber Spider
Sat Jun 10, 2023 3:20 am
Forum: Coding Questions
Topic: Increment on not Gadget
Replies: 1
Views: 2099

Increment on not Gadget

Hi,

I am working on trying to create a simple game that can be showcased as "What is possible with the free edition of SpiderBasic". I am trying to increment the currency when the mouse is left-clicked, and it's not a gadget being clicked (ButtonGadget etc.). Here is the code I came up with:

If ...
by Cyber Spider
Mon Jun 05, 2023 1:28 pm
Forum: Coding Questions
Topic: [17:29:56] [COMPILER] Line 39: Module not found: stars_currency.
Replies: 5
Views: 3845

Re: [17:29:56] [COMPILER] Line 39: Module not found: stars_currency.


Can't point out the exact issue for you because your code is incomplete.

You posted the exact same code for currency.sb and input.sb

Oh sorry here is input.sb

DeclareModule Input
; procedures
Declare init()
Declare poll()
Declare hasClicked()
EndDeclareModule

Module Input
; initalized ...
by Cyber Spider
Mon Jun 05, 2023 2:30 am
Forum: Coding Questions
Topic: [17:29:56] [COMPILER] Line 39: Module not found: stars_currency.
Replies: 5
Views: 3845

Re: [17:29:56] [COMPILER] Line 39: Module not found: stars_currency.


The compiler is telling you what you are doing wrong here ;)
Module not found: stars_currency.

If you look at app.sb you have the line...
stars_currency::increment()

In currency.sb your module is called Currency so you must call it
currency::increment()

Also, if you use UseModule then you ...
by Cyber Spider
Sun Jun 04, 2023 9:34 pm
Forum: Coding Questions
Topic: [17:29:56] [COMPILER] Line 39: Module not found: stars_currency.
Replies: 5
Views: 3845

[17:29:56] [COMPILER] Line 39: Module not found: stars_currency.

Hi,

I am getting the following error when i try to compile my code: [17:29:56] [COMPILER] Line 39: Module not found: stars_currency.

Here is the code I am using:

main.sb

; include all the required modules
XIncludeFile "input.sb"
XIncludeFile "currency.sb"
XIncludeFile "app.sb"

; module use ...
by Cyber Spider
Fri Jun 02, 2023 8:53 pm
Forum: Coding Questions
Topic: Multiple Instances Question
Replies: 2
Views: 2207

Re: Multiple Instances Question


no 'crash' here

DeclareModule Currency
; procedures
Declare create(x, y)
EndDeclareModule

Module Currency
; canvas to draw on
Global gadget

; create the currency
Procedure create(x, y)
gadget = TextGadget(#PB_Any, x, y, 100, 100, "Stars: 0")
EndProcedure

EndModule

OpenWindow(0, 0 ...
by Cyber Spider
Fri Jun 02, 2023 6:54 pm
Forum: Coding Questions
Topic: Multiple Instances Question
Replies: 2
Views: 2207

Multiple Instances Question

I am currently developing an idle game in SpiderBasic and have a question.

given the following code:


DeclareModule Currency
; procedures
Declare create(x, y)
EndDeclareModule

Module Currency
; canvas to draw on
Global gadget

; create the currency
Procedure create(x, y)
gadget ...