Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (TipmyPip, AndrewAMD, NewbieZorro), 16,660 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: function to: [Re: DJBMASTER] #274132
06/25/09 20:20
06/25/09 20:20
Joined: Nov 2007
Posts: 1,032
Croatia
croman Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
create 3 functions for your modes. then 3 buttons each calling different function.
no need for if-else thing

i'm not quite sure you read and understood the workshop. what's the point of just reading it? try doing it, try it with your small examples. otherwise you'll ask alot of this kinds of questions which i hear, you already do...



Ubi bene, ibi Patria.
Re: function to: [Re: croman] #274134
06/25/09 20:32
06/25/09 20:32
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
I have learned lite-C with the AUM magezin. It is really easy to learn with it. But level chaning is really complicated. See this at my game...

Re: function to: [Re: Rei_Ayanami] #274153
06/25/09 22:01
06/25/09 22:01
Joined: Jun 2009
Posts: 148
G
gamingfan101 Offline OP
Member
gamingfan101  Offline OP
Member
G

Joined: Jun 2009
Posts: 148
yeah, im sorry, its like i said though, once you get to the 3D coordinates in the workshops, it starts using the WED, which i dont have yet. And I get a better answer in the forums when i ask these questions, because some of it isnt exactly explained in the workshops. But im really sorry for bugging everyone here.


Sorry, im new. I have a tendency to ask really simple questions, so please be patient.
Re: function to: [Re: gamingfan101] #274197
06/26/09 01:17
06/26/09 01:17
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
Don't be sorry, we're here to help. Some members just get a little frustrated when people ask simple questions, that can be found in the manual or a workshop.

Are you doing the right workshops? It's this one just in case...

http://server.conitec.net/down/litec.zip

...Either way, you wont really need if-else code to check the game type because you have seperate functions, which can be run from your different buttons.

You can split your game into different parts like graphics, sound, input/output, collision, physics etc. Then you can bring all your written parts together and build the game. This is known as "Modular programming".

It might seem complecated, but once you actually start writing code; it becomes much easier.

It might help to draft out on a piece of paper what you want to happen when you click e.g, "Story Mode" button, for instance...

1) Close Main Menu screen
2) Show cutscene
3) Load level
4) Load player model
5) Show the GUI (health/ammo/etc)

Once you know exactly what you want you can go about looking for the specific function in the manual, which will perform your task.

Hope this helps you find your way around lite-c.

Re: function to: [Re: DJBMASTER] #274201
06/26/09 01:52
06/26/09 01:52
Joined: Jun 2009
Posts: 148
G
gamingfan101 Offline OP
Member
gamingfan101  Offline OP
Member
G

Joined: Jun 2009
Posts: 148
Thanks a lot! I really appreciate it, this will help a lot. Its just that im new to this, and get sort of impatient sometimes. I'll be sure to check the workshops and the AUMS much more carefully before i ask a question. Thanks!

Last edited by gamingfan101; 06/26/09 01:52.

Sorry, im new. I have a tendency to ask really simple questions, so please be patient.
Re: function to: [Re: DJBMASTER] #275308
06/30/09 23:45
06/30/09 23:45
Joined: Jun 2009
Posts: 148
G
gamingfan101 Offline OP
Member
gamingfan101  Offline OP
Member
G

Joined: Jun 2009
Posts: 148
ok, I've got the main menu finished, all except the functions for the buttons, all i need is one example though. I'm going to save the menu and everything else as seperate programs, so on the endurence button, would i code it like this?

PANEL* endubutton2 =
{
bmap = goover;
pos_x = 10;
pos_y = 200;
button(0, 0, goclicked, gonorm, goover, endurance.c, NULL, NULL);
flags = OVERLAY | SHOW;
}


Sorry, im new. I have a tendency to ask really simple questions, so please be patient.
Page 2 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | 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