Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  a couple more questions  (Read 2091 times)
0 Members and 1 Guest are viewing this topic.
Offline Raloth

Senior Newbie

I love YaBB 1G - SP1!

« Posted 2003-04-09 00:38:34 »

1) I still can't get things to render properly. What is wrong with the following?


The cursor ends up being blended with what is already on the screen. Changing the blending mode just makes it so the black transparency shows up. What am I doing wrong?

2) I would rather have my game in a window (yes I know that it is meant to be a debug mode). Is there any way to share the Windows cursor (for lack of a better description)? I.E. when the cursor reaches the edge of the Display boundries it hops out into the Windows environment.

3) What does Sys.getTimerResolution() do? Is it measured in ticks per millisecond?

Thanks for the help Smiley.
Offline princec

« JGO Spiffy Duke »

Medals: 1033
Projects: 3
Exp: 20 years

Eh? Who? What? ... Me?

« Reply #1 - Posted 2003-04-09 10:03:32 »

1) gl.blendFunc(GL.SRC_ALPHA, GL.ONE_MINUS_SRC_ALPHA); You will need an alpha channel for the mouse texture.

2) Tough Smiley Hack the library about yourself!

3) Ticks per second.

Cas Smiley

Offline Raloth

Senior Newbie

I love YaBB 1G - SP1!

« Reply #2 - Posted 2003-04-09 23:30:14 »

I know you can save alpha channels in a .png but I just can't get Photoshop (or any paint program for that matter) to do it. Is there some secret trick?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline darcone

Junior Devvie

Size matters

« Reply #3 - Posted 2003-04-10 04:04:48 »

I will now reveal the best kept secret in the history of Photoshop! Ok, be sure not to fall out of your chair now!
He he he...
I had a hard time finding the answer for that one as well, and the simple answer is this following procedure:

a) Create an image without a background layer (says itself, transparent).
b) Go to channels and add a new channel (should be R, G, B and now Alpha 1 <-- the new one)
You&acute;re all done! Save as.. and then choose PNG.
Remember to keep your texture sizes 2^n Wink
Pages: [1]
  ignore  |  Print  

EgonOlsen (74 views)
2018-06-10 19:43:48

EgonOlsen (55 views)
2018-06-10 19:43:44

EgonOlsen (74 views)
2018-06-10 19:43:20

DesertCoockie (254 views)
2018-05-13 18:23:11

nelsongames (154 views)
2018-04-24 18:15:36

nelsongames (154 views)
2018-04-24 18:14:32

ivj94 (895 views)
2018-03-24 14:47:39

ivj94 (156 views)
2018-03-24 14:46:31

ivj94 (808 views)
2018-03-24 14:43:53

Solater (172 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!