Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,014 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Dll of GameEdit - Function Preview [Re: Samb] #96255
10/28/06 15:57
10/28/06 15:57
Joined: Apr 2005
Posts: 4,506
Germany
F
fogman Offline
Expert
fogman  Offline
Expert
F

Joined: Apr 2005
Posts: 4,506
Germany
This is very nice from you! For me, the file functions are a great help. How many kb (MB..? ) has the dll at this moment?


no science involved
Re: Dll of GameEdit - Function Preview [Re: TripleX] #96256
10/29/06 04:28
10/29/06 04:28
Joined: Dec 2005
Posts: 478
India
M
msl_manni Offline
Senior Member
msl_manni  Offline
Senior Member
M

Joined: Dec 2005
Posts: 478
India
1). Functions that can retrive system information, like cpu-ID, HDD-CD-serial number etc for some copy protection .

2). Function to retrive animation frame name from a model file. I think there is no function to know the name of animation , of model for particular frame.

These are very needed functions .


My Specialities Limited.
Re: Dll of GameEdit - Function Preview [Re: msl_manni] #96257
10/29/06 09:31
10/29/06 09:31
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline
Serious User
vlau  Offline
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
KeyMap(keyFrom, keyTo)
example :

KeyMap(key_a, key_b);
on_a = function_a; // now pressing b will call function_a.


KeySwap(keyA, keyB)
example :

KeySwap(key_a, key_b);
on_a = function_a; // now pressing b will call function_a
on_b = function_b; // now pressing a will call function_b

Then, keyboard remapping will be more convenient.

Re: Dll of GameEdit - Function Preview [Re: vlau] #96258
10/29/06 13:41
10/29/06 13:41
Joined: Oct 2002
Posts: 4,753
Munich, Bavaria, South of Germ...
TripleX Offline OP
Expert
TripleX  Offline OP
Expert

Joined: Oct 2002
Posts: 4,753
Munich, Bavaria, South of Germ...
Code:

key_set (number, function);
Sets the given function to the key with the given scancode. This way keyboard remapping can be done very easily.
Parameters:
number scancode of key
function pointer of function assigned to the key with given scancode

Speed:
Fast
Example:
Example for remapping a key:
print("Please press key to assign function to");
while (key_any == 0) { wait(1); } // wait until a key is hit
str_cpy(my_str,"You have pressed ");
str_for_key(temp_str,key_lastpressed);
str_cat(my_str,temp_str);
print(my_str); // indicate which key
while (key_any == 1) { wait(1); } // wait until key is released
key_set(key_lastpressed,my_function); // assign function to key



Re: Dll of GameEdit - Function Preview [Re: TripleX] #96259
10/29/06 15:41
10/29/06 15:41
Joined: Mar 2003
Posts: 569
FRAJO Offline
User
FRAJO  Offline
User

Joined: Mar 2003
Posts: 569
I could add a width function for true type fonts.

str_getwidthTTF( str , font );


------------------------------------------- ICQ: 242543712 Ich bin nicht hier und bin nicht da. Wo bin ich dann? ".." ("") ^ ^ This is the evil vampire bunny. Copy and paste him into your signiture to help him achieve world domination. Yeah
Re: Dll of GameEdit - Function Preview [Re: TripleX] #96260
10/29/06 15:41
10/29/06 15:41
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline
Serious User
vlau  Offline
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
Yeah I know key_set exists in the engine. What I'm thinking
is there is a keyboard re-assignment program in your game
and the engine is able to hold remapped key info internally,
then you don't need to write codes for every new assigned keys
like the example I wrote above.

Page 2 of 2 1 2

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1