Search found 63 matches

by Random Terrain
Wed Jul 28, 2021 10:43 pm
Forum: Coding Questions
Topic: Do ExamineKeyboard and KeyboardPushed really work?
Replies: 8
Views: 1508

Re: Do ExamineKeyboard and KeyboardPushed really work?

Looks like it also won't work without using OpenScreen. When I try to use OpenScreen, the canvas stops working in the code below. I'm trying to read the left control key (#PB_Key_LeftControl ) when drawing on the canvas and have the code turn on the Erase button so the user can erase, then have it s...
by Random Terrain
Wed Jul 28, 2021 5:50 pm
Forum: Coding Questions
Topic: Canvas Mouse Pointer Drawing Question
Replies: 7
Views: 1662

Re: Canvas Mouse Pointer Drawing Question

Yes, catch the event #PB_EventType_MouseLeave . Here your code example using this method. I added seven lines (27, 33, 34, 114, 136, 137); each one with the comment ; ///// ADDED ///// at the end, so you can easily follow what was done. I thought I'd be able to insert the code at the correct spots ...
by Random Terrain
Mon Jul 26, 2021 9:22 pm
Forum: General Discussion
Topic: Do you uninstall free version before installing paid version?
Replies: 2
Views: 1942

Re: Do you uninstall free version before installing paid version?

Peter wrote: Mon Jul 26, 2021 9:21 pm
Random Terrain wrote: Mon Jul 26, 2021 9:12 pmCan I simply install the paid version
yes.
Thanks.
by Random Terrain
Mon Jul 26, 2021 9:12 pm
Forum: General Discussion
Topic: Do you uninstall free version before installing paid version?
Replies: 2
Views: 1942

Do you uninstall free version before installing paid version?

The code became too large for the free version, so I just bought SpiderBasic for €49.00 EUR ($60.16 USD) using PayPal.

Can I simply install the paid version or do I need to uninstall the free version first?


Thanks.
by Random Terrain
Mon Jul 26, 2021 12:31 pm
Forum: Coding Questions
Topic: Do ExamineKeyboard and KeyboardPushed really work?
Replies: 8
Views: 1508

Re: Do ExamineKeyboard and KeyboardPushed really work?

. . . but so is "LoadSprite(0, "Data/SpiderBasicLogo.png")" which isn't going to work as-is. Speaking of that, I made a folder called Data where my saved programs are and put the SpiderBasic logo image in it (named SpiderBasicLogo.png), so now those two example programs will wor...
by Random Terrain
Mon Jul 26, 2021 12:08 pm
Forum: Coding Questions
Topic: Do ExamineKeyboard and KeyboardPushed really work?
Replies: 8
Views: 1508

Re: Do ExamineKeyboard and KeyboardPushed really work?

So we can't read the keyboard without using "BindEvent(#PB_Event_RenderFrame, @RenderFrame())" and "FlipBuffers()"? They are always required? yes (at least with native SpiderBasic commands). Thanks. I wish they'd make that clear on these pages: https://www.spiderbasic.com/docume...
by Random Terrain
Mon Jul 26, 2021 10:37 am
Forum: Coding Questions
Topic: Canvas Mouse Pointer Drawing Question
Replies: 7
Views: 1662

Re: Canvas Mouse Pointer Drawing Question

Yes, catch the event #PB_EventType_MouseLeave . Here your code example using this method. I added seven lines (27, 33, 34, 114, 136, 137); each one with the comment ; ///// ADDED ///// at the end, so you can easily follow what was done. Thanks. After I'm more awake, I'll study the code and use #PB_...
by Random Terrain
Mon Jul 26, 2021 10:25 am
Forum: Coding Questions
Topic: Do ExamineKeyboard and KeyboardPushed really work?
Replies: 8
Views: 1508

Re: Do ExamineKeyboard and KeyboardPushed really work?

Works as expected: OpenScreen(800, 600, 32, "Test") Procedure RenderFrame() If ExamineKeyboard() If KeyboardPushed(#PB_Key_LeftShift) Debug "Shift" EndIf If KeyboardPushed(#PB_Key_Space) Debug "Space" EndIf EndIf FlipBuffers(); // continue the rendering EndProcedure Bi...
by Random Terrain
Mon Jul 26, 2021 5:08 am
Forum: Coding Questions
Topic: Do ExamineKeyboard and KeyboardPushed really work?
Replies: 8
Views: 1508

Do ExamineKeyboard and KeyboardPushed really work?

This doesn't work: Debug "hello" Procedure RenderFrame() If ExamineKeyboard() If KeyboardPushed(#PB_Key_LeftShift) Debug "Shift" EndIf If KeyboardPushed(#PB_Key_Space) Debug "Space" EndIf EndIf EndProcedure And this doesn't work: Debug "hello" Procedure Render...
by Random Terrain
Mon Jul 26, 2021 1:41 am
Forum: Coding Questions
Topic: Canvas Mouse Pointer Drawing Question
Replies: 7
Views: 1662

Re: Canvas Mouse Pointer Drawing Question

The best way to get help is to post some example code that you need help with or are having problems with. If someone has no executable code they can simply copy/paste into the IDE to look at and test, you may be waiting quite a long time for help (unless someone in the forum is extremely bored and...