Search found 58 matches
- Mon May 22, 2023 11:12 pm
- Forum: Coding Questions
- Topic: Using a canvas to catch mouse and keyboard events in windowed screen
- Replies: 6
- Views: 336
Re: Using a canvas to catch mouse and keyboard events in windowed screen
Im drawing only the tiles that are seen but as the user can make zoom out the amount of tiles that can be seen sometimes is a lot. Many thanks for the suggestion, i think ill try with the OGL method
- Mon May 22, 2023 7:49 pm
- Forum: Coding Questions
- Topic: Using a canvas to catch mouse and keyboard events in windowed screen
- Replies: 6
- Views: 336
Re: Using a canvas to catch mouse and keyboard events in windowed screen
But how to catch mouse interactions and keyboard events and also allowing to move the mouse out of the windowedscreen?
- Mon May 22, 2023 7:36 pm
- Forum: Coding Questions
- Topic: Using a canvas to catch mouse and keyboard events in windowed screen
- Replies: 6
- Views: 336
Re: Using a canvas to catch mouse and keyboard events in windowed screen
Im making a tilemapper and the canvasgadget dies when displaying large maps with several layers, im afraid even the screen gadget isnt enought or maybe its cause the back canvas is making the fps drop?
- Mon May 22, 2023 7:27 pm
- Forum: Coding Questions
- Topic: Using a canvas to catch mouse and keyboard events in windowed screen
- Replies: 6
- Views: 336
Using a canvas to catch mouse and keyboard events in windowed screen
Hi guys im having a problem, i have a program that needs the more speed the better and what im doing in order to get this speed is using a windowedscreen, the point is that i dont want to use initmouse cause it traps the mouse inside the screen so what im using is a canvas gadget being displayed beh...
- Thu May 18, 2023 6:09 pm
- Forum: Applications - Feedback and Discussion
- Topic: [Module] raylib-purebasic (Windows/Linux/macOS)
- Replies: 42
- Views: 12974
Re: [Module] raylib-purebasic (Windows/Linux/macOS)
Hi i download the module from the last post of @code_new and im not getting errors but im not watching anything, am i doing something wrong?
Btw i also was using the asmcompiler the whole time, this was not very obvious to discover, i switched it to the c today
Btw i also was using the asmcompiler the whole time, this was not very obvious to discover, i switched it to the c today
- Tue Mar 21, 2023 5:43 pm
- Forum: Announcement
- Topic: RAD Game Development Tool - update April 6th
- Replies: 19
- Views: 9334
Re: RAD Game Development Tool - update January 5th
New update! Collision system! User can create as many types of collisions as he wants - Collisions uses assets imported in the tool, there is a limitation of 40x40 px per collision image - When the user assigns a collision to a tile this collision is propagated to the map - User can place tiles with...
- Thu Feb 02, 2023 6:32 pm
- Forum: Coding Questions
- Topic: Question about DrawingBuffers (with example)
- Replies: 18
- Views: 918
Re: Question about DrawingBuffers (with example)
It works! many thanks, i modified the code to make it work with the image and it works, yes also adding the .l was critical Here is the code in case a future person see this Structure imgBackup_Structure i.i EndStructure Structure imageFile_Structure imgBackup.imgBackup_Structure List ckeys.i() EndS...
- Thu Feb 02, 2023 6:17 pm
- Forum: Coding Questions
- Topic: Question about DrawingBuffers (with example)
- Replies: 18
- Views: 918
Re: Question about DrawingBuffers (with example)
This is the image, the target is to remove the green background
- Thu Feb 02, 2023 6:06 pm
- Forum: Coding Questions
- Topic: Question about DrawingBuffers (with example)
- Replies: 18
- Views: 918
Re: Question about DrawingBuffers (with example)
Im afraid that doesnt have any effect Mijikai
- Thu Feb 02, 2023 5:39 pm
- Forum: Coding Questions
- Topic: Question about DrawingBuffers (with example)
- Replies: 18
- Views: 918
Re: Noob question about imageBuffer function
Here is a working example, the commented plot works but the actual code doesnt Structure Pixel Pixel.l EndStructure If OpenWindow(0, 0, 0, 220, 220, "CanvasGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) CanvasGadget(0, 10, 10, 200, 200) UsePNGImageDecoder() img.i = LoadImage(#...
- Thu Feb 02, 2023 3:35 pm
- Forum: Coding Questions
- Topic: Question about DrawingBuffers (with example)
- Replies: 18
- Views: 918
Question about DrawingBuffers (with example)
Hi im trying to create a function that turns a selected color into a transparent using image buffers, i know how to do it with plot For i = 0 To ImageHeight(imageFiles()\imgBackup\i)-1 For z = 0 To ImageWidth(imageFiles()\imgBackup\i)-1 If Point(z,i) = cKey Plot(z,i,RGBA(0,0,0,0)) EndIf Next z Next ...
- Tue Jan 31, 2023 10:19 pm
- Forum: Coding Questions
- Topic: Problem with pointers
- Replies: 6
- Views: 330
Re: Problem with pointers
Btw i found a solution thanks to Stargate feedback
I converted globallistmaps()\fileUrl into a .String class and the pointers are all .String too, and it appears to work as expected!
I converted globallistmaps()\fileUrl into a .String class and the pointers are all .String too, and it appears to work as expected!
- Tue Jan 31, 2023 9:27 pm
- Forum: Coding Questions
- Topic: Problem with pointers
- Replies: 6
- Views: 330
Re: Problem with pointers
Ok many thanks for your help!
- Tue Jan 31, 2023 9:14 pm
- Forum: Coding Questions
- Topic: Problem with pointers
- Replies: 6
- Views: 330
Re: Problem with pointers
Its what stargate is saying
Mmm but then how i keep the reference to the string if i need to change it?
Mmm but then how i keep the reference to the string if i need to change it?
- Tue Jan 31, 2023 8:51 pm
- Forum: Coding Questions
- Topic: Problem with pointers
- Replies: 6
- Views: 330
Problem with pointers
Hi im recently using pointers to have more efficient code in my app and im finding some weird behaviours that i cant explain, maybe im making any kind of beginner error as pointers is a thing i dont use very often I have this code SelectElement(imageFiles(),globalListMaps()\fileData) Debug "poi...