0 registered members (),
1,094
guests, and 1
spider. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: i've done everything i can think of
[Re: the_mehmaster]
#276298
07/04/09 09:48
07/04/09 09:48
|
Joined: Jul 2008
Posts: 1,178 England
MrGuest
Serious User
|
Serious User
Joined: Jul 2008
Posts: 1,178
England
|
there's no point in having 2 programs for this, ok, im really am sorry, i can tell im beginning to get annoying and you're not being annoying you need to create unique functions for what you're trying to do so in your credits functions you still have all the definitions you need, but youu just need to set which TEXT and PANEL visible depending on what you're doing so you can put all your PANELs and TEXT in a seperate scripts like you have, then have a function that toggles what you need so on buttonclick of creditbutton3 have toggle show_credits() then
function show_credits() set(opening_txt, SHOW);
etc... hope this helps
|
|
|
Re: i've done everything i can think of
[Re: MrGuest]
#276302
07/04/09 11:07
07/04/09 11:07
|
Joined: Dec 2008
Posts: 528 Wagga, Australia
the_mehmaster
User
|
User
Joined: Dec 2008
Posts: 528
Wagga, Australia
|
there's no point in having 2 programs for this I realise that, and that's not how i would do it. It's just that that's the simplest method using what he already has. In fact, the method i actually use is more like yours.
|
|
|
Re: i've done everything i can think of
[Re: the_mehmaster]
#276360
07/04/09 18:52
07/04/09 18:52
|
Joined: Jun 2009
Posts: 148
gamingfan101
OP
Member
|
OP
Member
Joined: Jun 2009
Posts: 148
|
ok, i've got the functions and all, but i cant test them because everytime i use the #include "credits.c" they combine the two scripts and none of the buttons will work. I think its because of something missing in my main function. Here it is below, what else should go into it? These arent levels so level_load will not work.
function main() { video_mode = 7; mouse_map = my_cursor; mouse_mode = 4; media_loop("mainmusic.wav",NULL,100); }
thanks again
Sorry, im new. I have a tendency to ask really simple questions, so please be patient.
|
|
|
Re: i've done everything i can think of
[Re: gamingfan101]
#276416
07/04/09 23:28
07/04/09 23:28
|
Joined: Apr 2006
Posts: 737 Ottawa, Canada
Ottawa
User
|
User
Joined: Apr 2006
Posts: 737
Ottawa, Canada
|
Hi! This is good reading All your code is panels and text. Put everything under one title and one main then play with "show" If you touch this button then show this...."function".. The function would hold the name of the panel and set show...it would also set the other panels to no---show
Hope this helps! Ottawa Ver 7.86.2 Pro and Lite-C
|
|
|
Re: i've done everything i can think of
[Re: MrGuest]
#276438
07/05/09 01:37
07/05/09 01:37
|
Joined: Jun 2009
Posts: 148
gamingfan101
OP
Member
|
OP
Member
Joined: Jun 2009
Posts: 148
|
ok, thank you so much, i've got this part working now. Once again thank you so much for your patience.
Sorry, im new. I have a tendency to ask really simple questions, so please be patient.
|
|
|
Re: i've done everything i can think of
[Re: gamingfan101]
#276440
07/05/09 01:45
07/05/09 01:45
|
Joined: Jun 2009
Posts: 148
gamingfan101
OP
Member
|
OP
Member
Joined: Jun 2009
Posts: 148
|
ok, one more question, when i stop my music that i have playing bt media_play. What would i use to stop it? media_stop doesnt work.
Sorry, im new. I have a tendency to ask really simple questions, so please be patient.
|
|
|
Re: i've done everything i can think of
[Re: Ottawa]
#276455
07/05/09 06:02
07/05/09 06:02
|
Joined: Sep 2005
Posts: 508 Texas
not_me
User
|
User
Joined: Sep 2005
Posts: 508
Texas
|
Hi! By writing in your code the name of the function my_robot_function (); which is in your "robotshowcase.c" I think that the include should be at the top of your main.c file under all the other includes and not in a function. You where in fact trying to call the actions of your entity with the include That's not the way to do it. You have to call the name of the function I always thought that if you defined an #include in a function that it becomes a local function. and #includes defined outside of functions are global...but i think i may be wrong...if im right..then he would just define the #include before the action hes calling. that way it has its file to call from...thats my thinking though.
|
|
|
|