Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Bluepixel

#16
@erico
I believe its this one:
https://www.glbasic.com/forum/index.php?topic=7757.0

however i think its been made for 3d games, im not too sure tho, i havent been able to find a download.
#17
@Schranz0r

Hi there, thanks a lot for the reply!  :)

Exactly how should I use these files?  O_O

I am quite new for GLBasic, so im a bit confused as to of how things work, sorry for that!
#18
Ah thanks a lot, tell me when you found something! :)
#19
Hi there, I am working on a small physics based game and would love to add in Box2D physics, since that's the only physics library for GLBasic I could find, so I found a Box2D library in the showroom, downloaded it, and ran the example project. The example project ran fine, but after compiling it within the editor it simply stated; *1 FAILED*. I created a hello world project, took the Box2D library and included it into my project, I ran it and the project failed, which leads me to believe that it's probably outdated, which is unfortunate since I was really hoping I could get some physics working :blink:

Anyone that can help me with this?



:offtopic: PS. I am very sorry about my frequent posts, I am rather new to GLBasic, so I am very curious as to of how things work. I will try to do as much research as I can on my own before posting anything. :offtopic:
#20
Hi there, I was super excited to try out android studio, when I compiled to android it told me to install android studio so I did. I created a simple hello world program and when I compiled for android it started up android studio, started updating some stuff and after a long time of waiting I just got errors.

Ive tried a lot to make this work but nothing seems to work.
Is there maybe a tutorial or guide on how to use android studio?
#21
Nevermind! I was using the wrong version  ;/

Everything is working correctly! Thanks a lot for your efforts!

:offtopic: However i still have one more problem, do you know how i can get text from an edit box? im working on a login screen.  :offtopic:
#22
Hi there, thanks for the reply. Ive tried using DDGui, however it seems quite dated, after pasting in some of the code provided with the DDGui user manual it didn't seem to work properly, is there any way to fix this or am I missing something?
#23
Hi there, I am hoping to start a small chat project, however I would like to use DDGui for it, ive tried using DDGui however it seems quite dated and it doesn't seem to work how it is supposed to.

Can I still use DDGui today, if so; how do I use it, if not; are there any alternatives?
#24
GLBasic - en / Perlin Noise
2019-Oct-24
Hi there, I was wondering if I can create Perlin Noise (terrain generation) in GLBasic, I am very interested in procedural generation, so does anyone know GLBasic's capabilities of procedural generation?
#25
Hi there, i was playing around with GLBasic, trying to make a polygon editing tool, i've included some code down below, it doesn't have any media included so you can just paste it into GLBasic and it should work. Anyways, currently I can add several poly vectors, which you can then create a shape with, however you can only create ONE shape.

Can anyone help me figure out on how to add more shapes?



Code (glbasic) Select
// --------------------------------- //
// Project: PolyEdit
// --------------------------------- //
width=640
height=480
SETSCREEN width, height, 0 // Set the width and height of my screen
ALLOWESCAPE TRUE
SYSTEMPOINTER TRUE

setup: // Set up all variables and other systems
maxpoints=1
clicktogg=FALSE

TYPE poly
x=0
y=0
active=FALSE
ENDTYPE

GLOBAL polypoints[] AS poly
DIM polypoints[maxpoints]
GOTO main


main: // The main loop
MOUSESTATE mx, my, mba, mbb // Return mouse values

GOSUB polypoint

IF KEY(57) // Quickly resets the game
GOTO setup
ENDIF

drawpointer()
SHOWSCREEN
GOTO main

SUB polypoint:
IF mba=1 // Add a poly point once clicked
IF clicktogg=FALSE
clicktogg=TRUE

i=maxpoints-1

polypoints[i].x=mx
polypoints[i].y=my
polypoints[i].active=TRUE

maxpoints=maxpoints+1

LOCAL pointtmp AS poly

DIMPUSH polypoints[], pointtmp

FOR i=maxpoints-1 TO maxpoints-1
polypoints[i].x=0
polypoints[i].y=0
polypoints[i].active=FALSE
NEXT
ENDIF
ELSE
clicktogg=FALSE
ENDIF

FOR i=0 TO maxpoints-1 // Draw a little X at each poly point
IF polypoints[i].active=TRUE
PRINT "x", polypoints[i].x-7, polypoints[i].y-9
ENDIF
NEXT

STARTPOLY 1 // Draw the poly itself
FOR i=0 TO maxpoints-2
POLYVECTOR polypoints[i].x, polypoints[i].y, 0, 0, RGB(255,255,255)
NEXT
ENDPOLY
RETURN
ENDSUB


FUNCTION drawpointer:
DRAWLINE 0, my, width, my, RGB(255,255,255)
DRAWLINE mx, 0, mx, width, RGB(255,255,255)
ENDFUNCTION


Ps. Sorry for the messy code, I haven't cleaned it up yet
#26
Hi there, I am working on an top down stealth game and I wanted to create a smooth top down movement, I wanted to add quick easing to the movement, Tho so far I have only been able to hardcode it in.

This is what I have so far:
Code (glbasic) Select
ALLOWESCAPE TRUE
width=1024
height=768
SETSCREEN width, height, 0 // Set screen resolution

LOADSPRITE "Media/player.bmp", 0 // Load all sprites and sounds


setup: // Setup all variables and other systems
px=width/2-64 // Player X
py=height/2-64 // Player Y
pspd=4 // Player speed
GOTO main


main: // The main loop
GOSUB move

DRAWSPRITE 0, px, py
SHOWSCREEN
GOTO main


SUB move:
IF KEY(17) // Add simple WASD movement
py=py-pspd
ENDIF

IF KEY(31)
py=py+pspd
ENDIF

IF KEY(30)
px=px-pspd
ENDIF

IF KEY(32)
px=px+pspd
ENDIF

RETURN
ENDSUB


Can anyone help me with this?