Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The Pendulum Online
#1
A joint effort of me and Sonire.

Here is an early stage of development, with a not quite finished "GUI"

Yes, the game is full screen, the maps DO fit to an 800x600 screen res.

[Image: ss15lz.th.gif]
Reply
#2
looks like it's going well so far. might want to look into semi-transparent forms... that's what i did, and i combined it with "always on top" forms, that way players could move the chat box around, and it looked like the more "professional" 3d mmorpgs out there. i still have the code if you'd like it.
Reply
#3
Sure, problem is, my computer just died again, it'll work in awhile prolly.

If you want to share the code, post it, otherwise, PM it to me.
Reply
#4
i'll post it when i get home, i'm at work right now and i don't have access to it. but, it uses an API for the semi-transparent forms so i'm not sure if it'll work on Win95 systems...
Reply
#5
Eh, alot of stuff going in the game works only with nt based systems, so, one of the requirements is going to prolly be windows xp.
Reply
#6
there are 2 tutorials to do that here already.
Reply
#7
What form on top?

Code:
Private Declare Function SetWindowPos Lib "user32" (ByVal hWnd As Long, _
    ByVal hWndInsertAfter As Long, ByVal X As Long, ByVal Y As Long, _
    ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long

Const SWP_NOSIZE = &H1
Const SWP_NOMOVE = &H2
Const SWP_SHOWWINDOW = &H40
Const HWND_NOTOPMOST = -2
Const HWND_TOPMOST = -1

' Set a form always on the top.
'
' the form can be specified as a Form or object
' or through its hWnd property
' If OnTop=False the always on the top mode is de-activated.

Sub SetAlwaysOnTopMode(hWndOrForm As Variant, Optional ByVal OnTop As Boolean = _
    True)
    Dim hWnd As Long
    ' get the hWnd of the form to be move on top
    If VarType(hWndOrForm) = vbLong Then
        hWnd = hWndOrForm
    Else
        hWnd = hWndOrForm.hWnd
    End If
    SetWindowPos hWnd, IIf(OnTop, HWND_TOPMOST, HWND_NOTOPMOST), 0, 0, 0, 0, _
        SWP_NOMOVE Or SWP_NOSIZE Or SWP_SHOWWINDOW
End Sub
Google found that ^^
Reply
#8
I only have one question about that, if you place the form on top, how is a player possed to move and what not? Do you move all that code to the transparent form, or what?
Reply
#9
you can make the form dragable if they mouse down on either of the text boxes, or the form itself. i'll upload the code for you tonight... if i can remember to do it... :roll:
Reply
#10
No, I mean, when the player is walking and what not. Since the transparent form will be on top, the keypresses won't work in frmmirage.

Well, to my knowledge anyways.
Reply
#11
why would you want the keypresses to move the character in the textbox?. It prevents them from selecting text with their keyboard and such since the arrow keys would move the character, I think its good like that. But whatever, they can just click the screen if they want to interact again.
Reply
#12
Um, you always twist what I say.

I meant, if you jsut lay a form over the main form, then how is the game going to process the keys, such as moving the player and what not.
Reply
#13
I think i figgered what i didnt like about vbmodaless

It always activated the window, with the code i gave you it had the option to activate or not. I think its pretty similar to renegades code above


Anyway, about the processing kes thing, you can have the option to not activate the window when its set on top, so the window underneath still has control.

Either that or you convert over to directinput, which isnt that bad
Reply
#14
Oh, okay. I'll prolly be messaging you later for some help dealing with that. Thanks.
Reply
#15
Here's the example for semi-transparent forms. the amount is adjustable so it can be more or less transparent.

http://xthost.info/endieko/Semi-Transparent%20Forms.rar
Reply
#16
dose any one have this file?


The link above has gone dead.
Reply
#17
Blue Fly Wrote:dose any one have this file? The link above has gone dead.

Quote:Wed Jun 14, 2006 11:53 pm

You don't need a file. Use Search button & look for the Script to do it.
Reply
#18
Mattyw Wrote:
Blue Fly Wrote:dose any one have this file? The link above has gone dead.

Quote:Wed Jun 14, 2006 11:53 pm

You don't need a file. Use Search button & look for the Script to do it.



I have tried searching and cant find any example or a good explination of the problem. I can get the box to be semi transparent over the map, but then if flashes every time the map is re-drawn (or built). I know it has something to do with the FPS or that the txt box is a windows fourm control object thingy and the map is not. Something to that nature is the problem.
Reply
#19
Convert to DX8.

That's my answer, all WILL be alot easier & look so much epicer on DX8. =-p

Well, could BLT or whatever the text ONTO the Game Screen, then it moves depending on TextBox location.
Reply
#20
Lea Wrote:If the effect is the same, who cares how it was done? Wink

Aren't you the one who told me that there is always a better way to do something Wink.
Reply
#21
Lea Wrote:If the effect is the same, who cares how it was done? Wink

Robin Smile
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)