|
Post by oldnoob on Aug 25, 2010 17:40:32 GMT -5
I posted this at the end of the "Very basic basic" thread but I don't think anyone is looking there anymore, but please do 'çuz there's a link to download what I'm doing with my poker program with pictures and everything. It's not complete by a long shot but I'm off to a good start, its a long way from when I first got here a week ago (or whatever) and couldn't even print a picture to the screen. Anyway I have a question, I'm going to use the mouse as the interface for the poker game and I read in a post by Tom that the cursor is turned off by default so is there a way to turn it back on? If that isn't an option then how about this, I tried using a .png file of a cursor arrow with transparency but when it appears in the program it isn't transparent, its a small black box with a white arrow on it. Is there a way to make it transparent? Thanks, Oldnoob.
|
|
|
Post by oldnoob on Aug 25, 2010 17:59:26 GMT -5
This is off topic but I was wondering is there a way we can use our own Avatar? I have a cool cartoon of myself that looks like me. Just wondering. Oldnoob.
|
|
|
Post by shadow008 on Aug 26, 2010 10:59:37 GMT -5
In terms of the mouse, you have 2 options: 1) The toolbox pluginor 2) Make the program displayed in windowed mode (In b4gl options) In terms of your avatar Go to the "profile" button located near the top of the page. Modify profile Go down to "Avatar URL" and post the url of the direct picture to there (The picture must be online somewhere). Click "Modify Profile" ;D About your problem with your png..... What function are you using to display it with? if it looks something like this: dim sprite = loadtex("filepath") dim cursor = newsprite(sprite) sprsetpos(WindowWidth()/2,WindowHeight()/2) bindsprite(cursor) ..... update cursor code ..... That should work fine if your cursor is a valid .png file.... Happy coding
|
|
|
Post by Supermonkey on Aug 26, 2010 12:02:09 GMT -5
Another option for the mouse is to have a sprite in place of the mouse cursor and position it at the x and y co-ordinates of the hidden mouse cursor using the mouse_x() and mouse_y() functions.
Oh and I'm moving this to the b4g help section!
|
|
|
Post by chris857 on Aug 26, 2010 15:12:17 GMT -5
For a .png, I think it may have to have dimensions that are a power of 2 (see here). And shadow, I didn't know you could do that for the cursor in full-screen mode, but it works .
|
|
|
Post by oldnoob on Aug 26, 2010 19:11:23 GMT -5
Thanks guys, I'll play around with the png stuff. About the Avatar do I just need the generic website URL like: www.wikispaces.com/, because I have a site there or do I need more than that? Sorry I'm such a noob, but I'm trying not to be. Thanks again, OldNoob.
|
|
|
Post by shadow008 on Aug 27, 2010 17:00:43 GMT -5
Actually, you go to the point where you can see the picture on your wikispaces, then right click and hit "view image". Copy and paste the url bar at the top (it should end with .jpg, .png, .bmp, ect...)
Such as the actual avatar you have on right now. If you right click and hit "view image" it will pop up the actual image online (where ever it came from)
|
|
|
Post by oldnoob on Aug 28, 2010 3:32:57 GMT -5
Thanks shadow008, its usually something relatively simple...ya just gotta know!
|
|