Getting started!

Posted By: Amanda_Dearheart

Getting started! - 05/08/21 02:45

Hey guys, just getting started! I managed to get a splash screen into my project, but I cannot get the the game started. It is difficult to explain in words what is happening, so I want to attach a zip file containing a video of what is happening. How do I do that? Hopefully there is someone on these forums that can help me solve them. Also included is a script file that contains errors that I that load_level is undeclared. Hopefully someone can help me fix this problem.
Posted By: 3run

Re: Getting started! - 05/08/21 10:09

Hey!

For attaching videos, I would recommend (f.e.) using youtube. If you use platforms such as youtube, other users will be confident that content is safe (no viruses, etc).
As for sharing the code, you can simply use code tags:

[.code] // code here [./code] (don't forget to remove dots).

As for the error 'load_level is undeclared', maybe it's a typo in your message, but it's visaversa -> 'level_load (STRING* filename);'
Another thing to mention is, that if you don't include acknex header into your project, sometimes it won't recognize acknex function (#include <acknex.h> at the top).

Here is a small example:
Code
#include <acknex.h> // include acknex header

void main()
{
	fps_max = 60; // set fps limit
	warn_level = 6; // show all errors
	
	// initialize video device
	video_mode = 7;
	video_switch(video_mode, 0, 0);
	
	// empty level
	level_load("");
	
	// loop untill 'esc' is pressed
	while(!key_esc)
	{
		// draw 'hello world' at x = 10 y = 10 pixel position with white color
		draw_text("hello world!", 10, 10, COLOR_WHITE);
		
		// wait one frame, then repeat
		wait(1);
	}
	
	// exit the game when we break from the loop
	sys_exit(NULL);
}


Best regards!
Posted By: Dooley

Re: Getting started! - 05/08/21 10:32

It might also help to know which version of Gamestudio you are using.

I agree, I don't think there is a way to attach a zip file here. A Youtube video would be your best bet.
Posted By: Amanda_Dearheart

Re: Getting started! - 05/09/21 02:31

Thanks to the two of you.
Posted By: Aku_Aku

Re: Getting started! - 05/09/21 11:07

There is one more option. You can attach an image file to your post (eg. screenshot).
The method is explained in the Forum Help at the top of the forum web page.
© 2024 lite-C Forums