1 registered members (3s05bmmc),
740
guests, and 4
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Why wont this work?
[Re: gamingfan101]
#271016
06/10/09 20:27
06/10/09 20:27
|
Joined: Apr 2009
Posts: 298 Southern Oceans
KiwiBoy
Member
|
Member
Joined: Apr 2009
Posts: 298
Southern Oceans
|
What about this? "awesome-fire-dragon-ablaze.jpg" I havnt ever seen a def like this before, shouldnt it be; 'awesome_fire_dragon_ablaze.jpg' as I amnot sure if the syntax is readable or even permitted.
[edit] Wooopsies...and you dont actually have a level loading up do you ? In main; level_load = " ???"'
Last edited by KiwiBoy; 06/10/09 20:30.
Use the 'manual' Luke, the manual is your friend. 'Self reminder' My WebPage
|
|
|
Re: Why wont this work?
[Re: KiwiBoy]
#271023
06/10/09 20:34
06/10/09 20:34
|
Joined: Jun 2009
Posts: 148
gamingfan101
OP
Member
|
OP
Member
Joined: Jun 2009
Posts: 148
|
awesome-fire-dragon-ablaze.jpg is the name of the image, and that image works fine. and im still new to all this so i dont actually have a level, its just a picture with a button to end the program. Similar to workshop 06.
Sorry, im new. I have a tendency to ask really simple questions, so please be patient.
|
|
|
Re: Why wont this work?
[Re: gamingfan101]
#271025
06/10/09 20:38
06/10/09 20:38
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
Expert
|
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
Then just change main to be this...
function main()
{
video_mode = 7;
level_load("");
screen_color.red = 100;
}
And if it STILL doesnt go, whats the name of your file? Make sure its saved as somthing .C and not wdl. And what is the error message that it spits up when it fails? If you dont get one, go into SED/Options/Preferences/ and delete the -eq out of the command-line options and try again.
Last edited by EvilSOB; 06/10/09 20:42.
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
Re: Why wont this work?
[Re: alibaba]
#271033
06/10/09 21:39
06/10/09 21:39
|
Joined: Jun 2009
Posts: 148
gamingfan101
OP
Member
|
OP
Member
Joined: Jun 2009
Posts: 148
|
ok, heres the new code, for some reason now it takes forever to load, and when it does the screen is just black, What am i missing? Im really sorry for bugging you all with this.
//////////////////////////////////////////////////////////////////// #include <acknex.h> #include <default.c> ////////////////////////////////////////////////////////////////////
BMAP* firebackground = "awesome-fire-dragon-ablaze.jpg"; // dragon fire background with button on it
PANEL* first_pan = // my first panel { pos_x = -40; pos_y = 0; layer = 1; bmap = firebackground; button(300, 0, "stopclicked.jpg", "stopnormal.jpg", "stopnormal.jpg", quit_program, NULL, NULL); flags = OVERLAY | VISIBLE; } BMAP* pngRobot = "LDDScreenShot1.png"; // robot in foreground
PANEL* second_panel = { pos_x = -270; pos_y = -100; layer = 2; bmap = pngRobot; flags = OVERLAY | VISIBLE; }
/////////////////////////////////////////////////////////////////////
function main() { video_mode = 7; level_load(""); screen_color.red = 100; }
function mouse_startup() { mouse_mode = 1; while (1); { vec_set(mouse_pos, mouse_cursor); wait(1); } }
Last edited by gamingfan101; 06/10/09 22:12.
Sorry, im new. I have a tendency to ask really simple questions, so please be patient.
|
|
|
Re: Why wont this work?
[Re: gamingfan101]
#271044
06/11/09 00:23
06/11/09 00:23
|
Joined: Oct 2004
Posts: 4,134 Netherlands
Joozey
Expert
|
Expert
Joined: Oct 2004
Posts: 4,134
Netherlands
|
You still don't call the mouse function (with the previous code).
function main() { ... mouse(); }
Last edited by Joozey; 06/11/09 00:25.
Click and join the 3dgs irc community! Room: #3dgs
|
|
|
Re: Why wont this work?
[Re: Joozey]
#271115
06/11/09 10:14
06/11/09 10:14
|
Joined: May 2008
Posts: 2,113 NRW/Germany
alibaba
Expert
|
Expert
Joined: May 2008
Posts: 2,113
NRW/Germany
|
he has _startup() at the name.that means it starts automatically here i correct and tested it: //////////////////////////////////////////////////////////////////// #include <acknex.h> #include <default.c> //////////////////////////////////////////////////////////////////// function quit_program() { sys_exit(""); }
BMAP* firebackground = "awesome-fire-dragon-ablaze.jpg"; // dragon fire background with button on it
PANEL* first_pan = // my first panel { pos_x = -40; pos_y = 0; layer = 1; bmap = firebackground; button(300, 0, "stopclicked.jpg", "stopnormal.jpg", "stopnormal.jpg", quit_program, NULL, NULL); flags = OVERLAY | SHOW; } BMAP* pngRobot = "LDDScreenShot1.png"; // robot in foreground
PANEL* second_panel = { pos_x = -270; pos_y = -100; layer = 2; bmap = pngRobot; flags = OVERLAY | SHOW; }
///////////////////////////////////////////////////////////////////// BMAP* arrow = "arrow.bmp";
function mouse_toggle() // switches the mouse on and off { mouse_map = arrow; // use arrow as mouse pointer if (mouse_mode >= 2) { // was it already on? mouse_mode = 0; } else { mouse_mode = 2; } while (mouse_mode > 0) // move it over the screen { vec_set(mouse_pos,mouse_cursor); wait(1); } } function main() { video_mode = 7; screen_color.red = 100; mouse_toggle(); }
Last edited by alibaba; 06/11/09 10:35.
|
|
|
Re: Why wont this work?
[Re: alibaba]
#271230
06/11/09 21:02
06/11/09 21:02
|
Joined: Jun 2009
Posts: 148
gamingfan101
OP
Member
|
OP
Member
Joined: Jun 2009
Posts: 148
|
oh ok, i got it working now, thanks! im sorry for bugging you all with these questions, but can you please help me with two more things. One, in my program ive got the button set to OVERLAY but the black outside still shows up, any ideas? And two, what does it mean when the engine says "invalid slider size"?
Sorry, im new. I have a tendency to ask really simple questions, so please be patient.
|
|
|
|