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 - UBERmonkeybot

#196
I found this the other day.

Stay a while,Stay forever!!

http://impossible-mission.krissz.hu/
#197
Sorry,I draw much like a 6 year old child.
#198
I assume that if i didn't count anything under 0.2 would count as a deadzone.
#199
Voted!
Good Luck!    =D
#200
Ahha i think you may be right.

i Get this as an output

Joy 1  xx -0.1538438052  yy 1.333658863e-002             Joy2 xx -2.954191715e-002  yy 5.148472637e-002
Joy 1  xx -0.6840723753  yy 5.056916922e-002             Joy2 xx -2.954191715e-002  yy 5.148472637e-002
Joy 1  xx -0.8983428478  yy 5.056916922e-002             Joy2 xx -2.954191715e-002  yy 5.148472637e-002
Joy 1  xx -1  yy 6.546220183e-002                                 Joy2 xx -2.954191715e-002  yy 5.148472637e-002
#201
The program works as expected on android.
I notice that my wireless xbox controller gives these large numbers (upto 9,-9) when i let the joystick snap back to center.
It does it on both sticks.
But surely the software should catch the fact that xx is limited to 1,-1

I note in the Manual that this is for registered users only,I am not registered but the command seems to work(sort of)
#202
I just checked that and it made no differenece
#203
Hi,
When i run the following code i am consistenly getting values in  xx and yy outside -1 to 1 how can this be possible?

Prob me being stupid again.


Thanks in advance.

Code (glbasic) Select

REPEAT

LOCAL xx#,yy#,b

FOR i=0 TO GETNUMJOYSTICKS()-1
xx#=GETJOYX(i)
yy#=GETJOYY(i)
b=GETJOYBUTTON(i,0)


IF xx#<-0.991 THEN xx#=-1
IF xx#> 0.991 THEN xx#= 1
IF yy#<-0.991 THEN yy#=-1
IF yy#> 0.991 THEN yy#= 1
DEBUG "\ni "+i+" xx "+xx#

NEXT
PRINT "Joytest",100,100
SHOWSCREEN



UNTIL FALSE
#204
Oh Yeah! :good:

Thanks very much.
#205
GLBasic - en / Mem2Sprite
2015-Aug-31
Could someone please cast their eye over this,
I don't understand why this doesn't draw a green square.

Thanks

Code (glbasic) Select

GLOBAL   single%[]//[15]

GLOBAL w=16,h=16
DIM single%[w*h]

GLOBAL test2%
test2%=GENSPRITE()


FOR y=0 TO h-1
FOR x=0 TO w-1

single[x+(y*w)]=INTEGER(0xff00ff00)
DEBUG "\n"+x+" "+y+" "+HEX$(single[x+(y*w)])
// BREAK

NEXT
NEXT


LOCAL u


test2%=MEM2SPRITE(single%[],test2%,w,h)
IF test2%=0
DEBUG "\ntest2%=0  MEM2SPRITE FAILED"
END
ENDIF


DEBUG "\ntest2%= "+test2%
PRINT test2%,100,80

DRAWSPRITE test2%,100,100
SHOWSCREEN
MOUSEWAIT
#206
Hmm it seems to be working now...I don't know what i did.
#207
It's working as expected now,I rebooted.
#208




I cannot get prescaler to work reliably.I cannot increase screen by 2

e.g.

Game screen is @ 1280x800
Prescaler 2560,1600

so its 2 x  the original but is the size of the original
if i multiply by 1.5 then you can visually see that it is different.

I have read somewhere else that this may be a bug so have started a thread on it.

Anyone else experiencing weirdness,if not i will post my code
#209
You need to download the platform

http://www.glbasic.com/platform/

It says it just under  the download link for the SDK  =D
#210
Yes I have.