Search found 42 matches

by Alex777
Thu May 22, 2025 1:32 pm
Forum: General Discussion
Topic: Can't access this forum outside EU
Replies: 32
Views: 3993

Re: Can't access this forum outside EU

No problem here in the Caribbean (Cayman Islands).
by Alex777
Mon Jan 23, 2023 5:09 pm
Forum: Coding Questions
Topic: [solved] CreateSprite() bug?
Replies: 3
Views: 420

Re: CreateSprite() bug?

Use Compiler Options --> Libarary Subsystem --> directx9
Thanks. Solved.
By 'not working' what do you mean?
Sorry I was unclear. I meant simply "not displaying the sprite".
by Alex777
Mon Jan 23, 2023 4:23 pm
Forum: Coding Questions
Topic: [solved] CreateSprite() bug?
Replies: 3
Views: 420

[solved] CreateSprite() bug?

The following code is not working in PB ver. 6.00 LTS(x86) with or without optimizer, However, it works in PB ver. 5.73 LTS(x86).

Is this a bug or an error in my code?


InitSprite()

ExamineDesktops()
Define Win.i = OpenWindow(#PB_Any, 0, 0, DesktopWidth(0), DesktopHeight(0), "bug?", #PB_Window ...
by Alex777
Fri Jan 17, 2020 1:56 am
Forum: Coding Questions
Topic: Flip sprite horizontally 2D bug
Replies: 5
Views: 1925

Re: Flip sprite horizontally 2D bug

The transform is sticky. It alters the sprite in memory.
by Alex777
Fri Jan 17, 2020 12:56 am
Forum: Coding Questions
Topic: Flip sprite horizontally 2D bug
Replies: 5
Views: 1925

Re: Flip sprite horizontally 2D bug

Try this (works for me). You need to call DisableBackfaceCulling() once at startup, then Transform() should do it for you.


Procedure DisableBackfaceCulling()
; call at initialization to disable backface culling
; from viewtopic.php?f=16&t=43718

Protected pd3d.IDirect3DDevice9

EnableASM ...
by Alex777
Sun Sep 03, 2017 1:33 pm
Forum: Coding Questions
Topic: Case insensitive search not working at FindString [invalid]
Replies: 4
Views: 2224

Re: [5.60] Case insensitive search not working at FindString

Ahhh! [slaps forehead] You are absolutely right. No bug there. :oops:
by Alex777
Sun Sep 03, 2017 1:19 pm
Forum: Coding Questions
Topic: Case insensitive search not working at FindString [invalid]
Replies: 4
Views: 2224

Re: [5.60] Case insensitive search not working at FindString

Same result here with PB 5.45 LTS x86.
by Alex777
Sat Jun 27, 2015 2:20 am
Forum: Off Topic
Topic: Authoritative Viewpoints on OOP
Replies: 88
Views: 34536

Re: Authoritative Viewpoints on OOP

I went to KFC the other and while eating my chicken, I tried convincing the manager that the store would be so much better if it also sold Sushi. I told him over and over again that Sushi is great and would bring his store more business, and would make it more popular, and make it more respected in ...
by Alex777
Sat Jun 13, 2015 3:32 am
Forum: Coding Questions
Topic: Screen To Image
Replies: 3
Views: 2041

Re: Screen To Image

This works for me:


W = 1024
H = 768
UsePNGImageDecoder()
UsePNGImageEncoder()
file$ = OpenFileRequester("Open Image", "","png|*.png",0)
If file$ <> ""
LoadImage(0,file$)

OpenWindow(0, 0, 0, W,H, "Screen to Image", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
InitSprite()
OpenWindowedScreen ...
by Alex777
Sat Feb 07, 2015 3:20 pm
Forum: Coding Questions
Topic: How to get a doubleQuote into a string ?
Replies: 25
Views: 6363

Re: How to get a doubleQuote into a string ?

Or even #DOUBLEQUOTE$ if you prefer ...

Code: Select all

MyString$ = #DOUBLEQUOTE$ + "Hello" + #DOUBLEQUOTE$
Debug MyString$
by Alex777
Sun Nov 23, 2014 1:37 pm
Forum: Coding Questions
Topic: Check if ChangeCurrentElement() returns a valid element
Replies: 11
Views: 3333

Re: Check if ChangeCurrentElement() returns a valid element

ListIndex() will return -1 if the list pointer does not point at a valid element. You could use that?
by Alex777
Sat Oct 18, 2014 1:57 pm
Forum: Coding Questions
Topic: Wrong DesktopWidth ()/DesktopHeight () returns
Replies: 17
Views: 6876

Re: [Bug] Wrong DesktopWidth/DesktopHeight() returns in VMwa

As I said in the other thread, I have checked and have no such issue with VMware Player.
by Alex777
Sat Oct 11, 2014 2:22 pm
Forum: General Discussion
Topic: DesktopWidth() and VMWare
Replies: 13
Views: 6957

Re: DesktopWidth() and VMWare

I use VMware Player from VMware, Inc. and I find that DesktopWidth() & DesktopHeight() return correct values from inside the emulator.
by Alex777
Tue Oct 07, 2014 12:51 pm
Forum: Coding Questions
Topic: TransformSprite()
Replies: 8
Views: 3002

Re: TransformSprite()

If you just want to alter the width or height, why not use ZoomSprite((#Sprite, Width, Height)?