The McLeodGaming forums were permanently closed on April 30th, 2020. You are currently viewing a read-only archive.
View unanswered posts | View active topics It is currently Fri May 15, 2020 9:28 am



 [ 7 posts ] 
Game maker I need help. 
Author Message
User avatar

Joined: Sat Aug 08, 2009 1:49 pm
Posts: 594
Location: ???????????????
Gender: Male
ok so i downloaded game maker and i don't know how to do some things can anyone help me?

things i don't know how to do
1.Make my character jump both left and right direction.
2.How to make my charcter do something once and wait before doing it again.
3.How to stop my character from landing on air
4.How to put a Health bar and Lives
5.how to create a stage by drawing it.
6.How to put music (my music won't load.)
7.How to put AI

This topic will lock after all these question are answered.Oh and by the way i have the lite version so if any of the things above can't be done because i don't have the pro version tell me.

AHHH! :facepalm: s***! I put this in the wrong topic uhhh how do i move it?! EDIT:Ok now it's in the right section.


Last edited by Blood on Thu Jan 07, 2010 1:15 am, edited 1 time in total.



Mon Dec 14, 2009 5:46 pm

Joined: Sat Aug 16, 2008 3:11 am
Posts: 712
Gender: Female
To create a stage the easiest way is to upload it as a bg and use invisible blocks to put over the background. A more efficient way is to break it down in a tileset and make it into your stage.


Thu Dec 17, 2009 3:00 am
WWW
User avatar

Joined: Sat Jun 13, 2009 8:14 am
Posts: 2026
Location: I'll never let go of my human heart!
Country: United States (us)
Gender: Male
MGN Username: Yoh-dono
Skype: yohlhant
Currently Playing: Playing the f*** out of Gundam Extreme VS. Full Boost
Waifu: Korra
6
make an a create obeject and put music object

_________________
Add my NNID: Kunzite-kun PSN: Kunzite-kun Twitter: @DaPlatinumTrim

Image


Sat Dec 19, 2009 11:24 am

Joined: Sat Dec 19, 2009 1:56 pm
Posts: 1
Gender: Anime Girl
http://www.youtube.com/watch?v=IMxuJP-gUmM

^ A video I made on getting Game Maker 7 Pro for free! (All features).


Sat Dec 19, 2009 1:57 pm
User avatar

Joined: Mon Dec 21, 2009 2:05 am
Posts: 53
Location: At my computer
Gender: Male
Skype: randomman159
1.
In the create event of the object, put this code:
Code:
ground=1
smovement=4 //change this to speed up / slow down the walking

In the step event of the object, put this code:
Code:
if keyboard_check(vk_left) = true
{
if place_free(x-smovement,y) = true
{
x-=smovement
}
}
if keyboard_check(vk_right) = true
{
if place_free(x+smovement,y) = true
{
x+=smovement
}
}
if keyboard_check_pressed(vk_up) = true and ground = 1
{
vspeed=-10
}
if place_free(x,y+2) = true
{
gravity=0
vspeed=0
ground=1
}
else
{
gravity=1
ground=0
}


That is a simple movement code.

2.
Depends? What do you mean, you could, in the create event of the object, put:
Code:
Doing=0

in the step:
Code:
if Doing>0
{
Doing-=1
}
//lets just say you start doing that thing when we press control.
if keyboard_check_pressed(vk_control) and Doing=0
{
Doing=50 //or however long it takes to do that thing.
}


3.
question 1...

4.
RTSM (read the stupid manual)
IT says:
Quote:
draw_healthbar(x1,y1,x2,y2,amount,backcol,mincol,maxcol,direction,showback,showborder) With this function you can draw a healthbar (or any other bar that indicates some value, like e.g. the damage). The arguments x1, y1, x2 and y2 indicate the total area for the bar. amount indicates the percentage of the bar that must be filled (must lie between 0 and 100). backcol is the color of the background for the bar. mincol and maxcol indicate the color when the amount is 0 and 100 respectively. For an amount in between the color is interpolated. So you can easily make a bar that goes e.g. from green to red. The direction is the direction in which the bar is drawn. 0 indicates that the bar is anchored at the left, 1 at the right, 2 at the top and 3 at the bottom. Finally showback indicates whether a background box must be shown and showborder indicated whether the box and bar should have a black border line.

put that in the draw event (that is the health)

With the lives... Thats a bit more complicated...

Code:
var a;
a=0;
repeat(lives)
{
draw_sprite(sprite0,0,view_xview + 50 + a,view_yview + 50 );a+=16;
}


ok... change the '50's to a bigger, or smaller number. That is what changes how far in from the top left of your screen it is. The first 50 being how far from the left, the second is how far from the top. the 16 is how far apart they should be. sprite0 should be replaced by the name of the sprite you use as lives (hearts, etc.).

5.
Do you mean, that you run the game, and you can draw the level then?
That is a lot more complicated then you think... You will have all sorts of problems, mainly through speed, but you can create a round sprite, around 32x32.
Then create an object with that sprite. Call this object obj_drawn
then create an object, called obj_control, in the LMB event, have:
Code:
instance_create(mouse_x,mouse_y,obj_drawn);

Then you have a level drawn, but it will make the game lag. I did it before, but can't remember exactly how i did it and it required quite a bit of code.

6.
Create a new sound, call it snd_music
check the background option...

create an object, call it obj_music, in its create event, put this code:
Code:
sound_play(snd_music)


7.
Woow, if you can't do the stuff above, AI is totally out of your realm. AI is dependant on the type of game. So i can't give you code. Instead i will give you the idea...
Take the coordinates of the CPU, and the coordinates of its enemy. Basically the CPU should do something about the enemy, so if its a platform type of game for example, you should check if its enemy is above it, and then it should jump, also checking though, if the floor is below it. If its enemy is right near it, make it attack, etc. Basically get a full idea of its surroundings, and make it act accordingly. For a good AI, a lot of code is needed.

_________________
Image
ProbablyUnlikely.webs.com - All my games (that i can find...)(that i have completed...)



Mon Dec 21, 2009 2:39 am
WWW
User avatar

Joined: Sat Aug 23, 2008 3:10 am
Posts: 2601
Location: Australia - Sydney
Gender: Male
Currently Playing: Ninja Gaiden III
8. Wrong section, take this to coder's paradise

_________________
Image


Mon Dec 21, 2009 2:41 am
WWW
User avatar

Joined: Sat Aug 08, 2009 1:49 pm
Posts: 594
Location: ???????????????
Gender: Male
Thanks everyone for your help I will now lock this topic.


Thu Jan 07, 2010 1:16 am
Display posts from previous:  Sort by  
 [ 7 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software for PTF.