Game Maker's Garage Forum

Game Creation => SilverCreator => Topic started by: bellybot1 on February 17, 2009, 09:08:32 PM

Title: Is this for me
Post by: bellybot1 on February 17, 2009, 09:08:32 PM
Hi there

I'm bellybot1 and i have just registered. I just have a few questions about gamemaker to see whether or not i should spend $20 on the full version. First is what is gamemaker capable of doing, like is it able to make platform games or even 3d games, what is its extent of game making capabilities. Second is how hard is it to write script for games. Last of all is this the right program for me to start off on as i have had no past experience in game making, also is there any good tutorials i should read first of all on the basic of script writing.

Thats all for now. Thanks
Title: Hello!
Post by: Gnome on February 17, 2009, 09:19:01 PM
Hello!
GameMakers Possiblities seem limited to the naked eye, but they are great. Although they can't do 3D, they can go into many genres, such as shooters, RPGs, Point & Click, Defense, and even Making Helpful Applications for everyday use. If you haven't I suggest downloading Games, a Good one is Quest of Magic by Silverwind, thats one of the more advanced RPGs, and he didn't even use many other engines he developed  :). The Scripting Language is very easy, in 2 months, I went from simple Point and Click to Making My own Genre! (See Gnome Defender) It also Gives you a Basic Understanding of Programming, many of our old members went on to make our own software companies, (one made the famous charlie the unicorn).

I highly suggest it.
Title: Re: Is this for me
Post by: bellybot1 on February 17, 2009, 09:21:37 PM
thanks for that

i will probably buy it but does anyone have any good tutorials to get me started on scripting because i downloaded the demo and i am quite confused.
Title: Re: Is this for me
Post by: WarHampster on February 17, 2009, 09:23:27 PM
Hi and welcome to the GMG :)... I can answer a few of your questions.

GameMaker is incapable of making an advanced 3d game (with models, ect.) although it can make classic fake-3d dungeon crawlers. For examples of what is possible to make, just look at entries for the previous GMG contests. Silverwind's Quest of Magic is a good example of a rpg style game that you could make with GameMaker.

I can't answer your other questions as I don't actually own GM myself ;).

EDIT - for tutorials just head to the Articles and Tutorials section of this site.
Title: Re: Is this for me
Post by: Gnome on February 17, 2009, 09:25:37 PM
There is the Wiki (incomplete) at
http://manual.gamemakersgarage.com/index.php?title=GameMaker:Command_Documentation

There are also examples on here:

http://gamemakersgarage.com/index.php?page=articles

Please Try the games, thats what convinced me! :)
Title: Re: Is this for me
Post by: bellybot1 on February 17, 2009, 09:59:20 PM
Thanks for the replys

I've downloaded a few rpg's and have made with my limited 15 line script a figure move right and left when you click the right arrow and left arrow. Its heaps of fun so hopefully when i get the full version i will be able to make an rpg. One more question on rpg's how do you get the person to move from tile to tile.

thanks
Title: Re: Hello!
Post by: Tireas Dragon on February 17, 2009, 11:53:14 PM
Quote
is it able to make platform games or even 3d games
Quote
GameMakers Possiblities seem limited to the naked eye, but they are great. Although they can't do 3D

Well I made a 3d game sort of.
You can download it Here. (http://www.gamemakersgarage.com/include/download.php?download=http%3A%2F%2Fwww.mediafire.com%2Fdownload.php%3Fu4eb5wjankr)

EDIT: Oh Moving from place to place is easy
Code: [Select]
ON KEYDOWN
IF keydown$ = "UPARROW" THEN
'    if you are not at the top of the board you move up
  IF manV <> 1 THEN
    manV = manV - 1
  ELSE
    GOTOCARD cardabovethisone
  END IF
END IF
IF keydown$ = "DOWNARROW"
'   if you are not at the bottom of the board you move down our board is 7x7
  IF manV <> 7 THEN
    manV = manV + 1
  ELSE
    GOTOCARD cardbelowthisone
  END IF
END IF
IF keydown$ = "LEFTARROW" THEN
  IF manH <> 1 THEN
    manH = manH - 1
  ELSE
    GOTOCARD cardleftofthisone
  END IF
END IF
IF keydown$ = "RIGHTARROW"
  IF manH <> 7 THEN
    manH = manH + 1
  ELSE
    GOTOCARD cardrightofthisone
  END IF
END IF
'now incorporating the Silverwind's AWESOME v6 engine "with my upgrade"
temp = manV * 7
temp = temp - 7
temp = temp + manH
'gridlayout$ is the variable which indicates where the obstacles on the board are
spot$ = MID$ gridlayout$ temp 1
'on the board we usually use 1 to indicate an obstacle and 0 to indicate open
' terrain
IF spot$ = "1" THEN
  ' Now to undo the move you just did into the wall
  IF keydown$ = "UPARROW" THEN manV = manV + 1
  IF keydown$ = "DOWNARROW" THEN manV = manV - 1
  IF keydown$ = "RIGHTARROW" THEN manH = manH - 1
  IF keydown$ = "LEFTARROW" THEN manH = manH + 1
  ' Now to show where you are
' if we are using Silverwind's 44x44 graphics
manX = manH * 44
manY = manV * 44
manX = manX + 5
manY = manY + 5
SPRITE 1 manX manY man.gif
END IF
hmmmm maybe its not so easy seems easy to me but i am very familiar with the code.
Title: Re: Is this for me
Post by: Gnome on February 18, 2009, 06:04:34 AM
Gridcode is easy once you have someone explain it bit by bit  ;)
Title: Re: Is this for me
Post by: EqwanoX on February 18, 2009, 11:13:59 AM
gm is good but sc is better in my opinion, i think its easier to program and the syntax will better prepare you for more advanced languages. silvercreator is free, has more features like methods, is more stable and has a ton of open sourse examples and code samples:

http://www.silvercreator.net/cgi-bin/yabb/YaBB.pl?board=sccode
Title: Re: Is this for me
Post by: WarHampster on February 18, 2009, 12:10:45 PM
... but is dead. GameMaker is still being worked on and updated.

I also like SC better, but the lack of updates is something to think about.
Title: Re: Is this for me
Post by: bellybot1 on February 18, 2009, 12:43:03 PM
yeah i looked into silvercreator but could someone point me to a tutorial for it about inserting sprites and grids

thanks
Title: Re: Is this for me
Post by: EqwanoX on February 18, 2009, 01:20:04 PM
theres not much more to update in sc, it has so many advantages to begin with.


its all pretty easy, first import a sprite in the sprites tab of the gamesetup

to create it (load into memory):
createsprite 1, "sprite name"     //1 is the sprites number, can be 1 to 50

then place it on screen:
movesprite 1, 5, 10     //the 5 and 10 are the x and y pixels

to move it around:
pushsprite 1, 10, 0     //this will push it 10 pixels to the right
Title: Re: Is this for me
Post by: Silverwind on February 18, 2009, 05:05:23 PM
Greetings and salutations Bellybot! Welcome to the forums, and let me start by congratulating you on getting this far. Many people aspire to make video games, but most give up before they even try. You however have taken the first great step towards making your awesome game idea a reality, and you couldn't have picked a better platform to start learning on than Mac GameMaker.

Mac GameMaker (or GM) boasts the most user-friendly interface and built-in programming language available on the Machintosh. Combine this with an extremely helpful online community and you've got an amazing learning environment. The Game Maker's Garage has tones of articles, tutorials and tools to help you along every step of the way, and once you've got the hang of making games you can even enter them in the annual GMG Game Making Contest for fame and glory!

So, where should you start? I recommend reading Silver's RPG Making Guide: http://www.gamemakersgarage.com/index.php?cat=articles&id=5

It's a little outdated, as I wrote it when I hadn't even been programming six months, but it's still very helpful. Undoubtedly though, the best way to learn how to program is to ask specific questions on the GMG forum, such as "How do I make text print on the screen?" for example. (that was one of the first questions I asked when starting off ;D )

In short; GM is a great programming language to learn, (especially if you have no prior knowledge of programming) it doesn't take very long to learn how to make cool games with it, and best of all it's only $20, Hurray!

Happy learning Bellybot, and don't hesitate to ask further questions! :)

EDIT:

Oh, and in answer to your question: Yes, I can give you step by step instructions on how to program just about anything, just post a topic. :)
Title: Re: Hello!
Post by: Silverwind on February 18, 2009, 05:36:04 PM
Quote
EDIT: Oh Moving from place to place is easy
Code: [Select]
ON KEYDOWN
IF keydown$ = "UPARROW" THEN
'    if you are not at the top of the board you move up
  IF manV <> 1 THEN
    manV = manV - 1
  ELSE
    GOTOCARD cardabovethisone
  END IF
END IF
IF keydown$ = "DOWNARROW"
'   if you are not at the bottom of the board you move down our board is 7x7
  IF manV <> 7 THEN
    manV = manV + 1
  ELSE
    GOTOCARD cardbelowthisone
  END IF
END IF
IF keydown$ = "LEFTARROW" THEN
  IF manH <> 1 THEN
    manH = manH - 1
  ELSE
    GOTOCARD cardleftofthisone
  END IF
END IF
IF keydown$ = "RIGHTARROW"
  IF manH <> 7 THEN
    manH = manH + 1
  ELSE
    GOTOCARD cardrightofthisone
  END IF
END IF
'now incorporating the Silverwind's AWESOME v6 engine "with my upgrade"
temp = manV * 7
temp = temp - 7
temp = temp + manH
'gridlayout$ is the variable which indicates where the obstacles on the board are
spot$ = MID$ gridlayout$ temp 1
'on the board we usually use 1 to indicate an obstacle and 0 to indicate open
' terrain
IF spot$ = "1" THEN
  ' Now to undo the move you just did into the wall
  IF keydown$ = "UPARROW" THEN manV = manV + 1
  IF keydown$ = "DOWNARROW" THEN manV = manV - 1
  IF keydown$ = "RIGHTARROW" THEN manH = manH - 1
  IF keydown$ = "LEFTARROW" THEN manH = manH + 1
  ' Now to show where you are
' if we are using Silverwind's 44x44 graphics
manX = manH * 44
manY = manV * 44
manX = manX + 5
manY = manY + 5
SPRITE 1 manX manY man.gif
END IF
hmmmm maybe its not so easy seems easy to me but i am very familiar with the code.
Woh! Impressive... you don't by any chance eat nails with your Corn Flakes do you? ;D
Title: Re: Is this for me
Post by: WarHampster on February 18, 2009, 05:44:42 PM
You are hereby promoted to the GMG's Minister of Propaganda.

Seriously, you should copy that and advertise it on gaming forums... it would get anyone to buy GameMaker :D
Title: Re: Is this for me
Post by: Silverwind on February 18, 2009, 06:02:34 PM
LOL! Siggin', and using the title!
Title: Re: Hello!
Post by: Tireas Dragon on February 18, 2009, 09:45:37 PM
Quote
Woh! Impressive... you don't by any chance eat nails with your Corn Flakes do you? ;D
No I don't. Are they any good in corn flakes?
Title: Re: Is this for me
Post by: Silverwind on February 19, 2009, 04:33:53 AM
Quote
No I don't. Are they any good in corn flakes?
They're alright, but titanium screws are my thing... without any milk too!
Title: Re: Is this for me
Post by: Gnome on February 19, 2009, 02:34:43 PM
I eat PCs with my cornflakes.
Title: Re: Is this for me
Post by: Gan on February 19, 2009, 02:45:35 PM
Haha. I just eat cocoa rice.


-Gandolf
Title: Re: Is this for me
Post by: WarHampster on February 19, 2009, 03:34:27 PM
I don't eat breakfast at all.

C-C-C-COMBO BREAKER!
Title: Re: Is this for me
Post by: bellybot1 on February 19, 2009, 10:39:24 PM
now back on topic

With a lot of trial and error i have been able to create my first game, which i must say i am quite proud of. What it is is two sprites, controlled using the arrow keys and wasd, are put in separate corners to start of with, you then run around and when the two sprites touch an alert pops up and says Tag you're it! It then sends the two sprites back to their starting points. So it is my version of tiggy. two questions how can i stop them running of the screen and secondly is there a way of making that alert box saying every even time "Tag You're it William" And every odd time "Tag You're it Daniel"

Thanks

Oh and if you haven't realised yet im using silver creator
Title: Re: Is this for me
Post by: Silverwind on February 20, 2009, 03:12:13 AM
I'm not fluent in SC, but Eq, Hampster and Gan are. It sounds like an impressive first game though, I couldn't grasp how to use sprites for months, hehe...
Title: Re: Is this for me
Post by: WarHampster on February 20, 2009, 12:06:12 PM
Quote
two questions how can i stop them running of the screen and secondly is there a way of making that alert box saying every even time "Tag You're it William" And every odd time "Tag You're it Daniel"

For the first problem, just add another condition to your movement commands that stops the movement from continuing if the sprite is off screen. For example,

Code: [Select]
IF SPRITEY(1) > (the highest y value on the screen) THEN
IF key$ = uparrow$ THEN
PUSHSPRITE 1,0,10
END IF
END IF

SPRITEY and SPRITEX return the x or y value of the sprite passed to them as a parameter. For example, lets say that sprite 1 is at the coordinates 10,30. Using SPRITEY(1) would return 30.
Title: Re: Is this for me
Post by: bellybot1 on February 20, 2009, 12:59:36 PM
Thanks for that

But there is one problem, im able to do one wall but how do i add in the other walls. Please tell me how this is wrong.

Code: [Select]
END IF
IF SPRITEY(1) < 0 THEN
   IF key$ = uparrow$ THEN
      PUSHSPRITE 1, 0, 25
END IF
IF SPRITEY(1) > 291 THEN
   IF key$ = downarrow$ THEN
      PUSHSPRITE 1, 0, -25
      END IF
   END IF
END IF
Title: Re: Is this for me
Post by: Silverwind on February 20, 2009, 01:54:41 PM
I'm not sure if this is helpful or not, but in GM an effective solution would be:

Code: [Select]
IF SpriteX < LeftWall THEN SpriteX = LeftWall
IF SpriteX > RightWall THEN SpriteX = RightWall
IF SpriteY < UpWall THEN SpriteY = UpWall
IF SpriteY > DownWall THEN SpriteY = DownWall

I'm not sure what the SC syntax is, but the same logic would apply.
Title: Re: Is this for me
Post by: EqwanoX on February 20, 2009, 01:57:09 PM
what? you have your "<" and ">" mixed up, switch them and it should work.


in gm you would edit the sprite coordinate variables, in sc you just use the movesprite command, same thing. and you could assign the wall coordinates to variables to make it easier to edit later

let leftwall=0

if spritex(1)<leftwall then
movesprite 1, leftwall, spritey(1)
end if
Title: Re: Is this for me
Post by: bellybot1 on February 20, 2009, 02:30:29 PM
Thanks Eqwanox

Now that ive made them not run of the board i only have a few more things to do:
Make rocks in the scenery that block movement.
Make the Title Card and Instructions
Make the Alert switch between words each time
Upload it onto this website.

If anyone could help with any of those i would be very grateful.

Thanks
Title: Re: Is this for me
Post by: WarHampster on February 20, 2009, 02:43:22 PM
I'm not sure what you mean by making the alert switch words...

As for obstacles, you could probably use something like this to start: http://www.silvercreator.net/cgi-bin/yabb/YaBB.pl?board=sccode;action=display;num=1164845614
Title: Re: Is this for me
Post by: Al Staffieri on February 20, 2009, 04:11:29 PM
Quote
is there a way of making that alert box saying every even time "Tag You're it William" And every odd time "Tag You're it Daniel"

This is GameMaker code, but SC should be very similar

IF player = 1 THEN
  ALERT Tag You're it William.
  player = 2
ELSE
  ALERT Tag You're it Daniel.
  player = 1
END IF


You should let the players type in their names at the beginning and then use those name variables. I think Sc would be something like this:

IF player = 1 THEN
  ALERT "Tag You're it " + player1$
  player = 2
ELSE
  ALERT "Tag You're it " + player2$
  player = 1
END IF
Title: Re: Is this for me
Post by: Silverwind on February 20, 2009, 04:48:34 PM
Quote
This is GameMaker code, but SC should be very similar

IF player = 1 THEN
  ALERT Tag You're it William.
  player = 2
ELSE
  ALERT Tag You're it Daniel.
  player = 1
END IF
You could also use the TOGGLE Command. :) I'm not sure if SC has a TOGGLE command, but GM could do it in 3 lines:

Code: [Select]
TOGGLE TaggedPlayer
IF TaggedPlayer = 0 THEN ALERT Tag! You're it William.
IF TaggedPlayer = 1 THEN ALERT Tag! You're it Daniel.
Title: Re: Is this for me
Post by: bellybot1 on February 20, 2009, 11:32:39 PM
OK

How do you get players to type in their names at the beginning?

Title: Re: Is this for me
Post by: Silverwind on February 21, 2009, 03:44:50 AM
In GM it's:
Code: [Select]
Name1$ = USERASK Enter player 1's name:
I assume SC has a USERASK command as well, but I'm not sure what the syntax is.
Title: Re: Is this for me
Post by: Teruri on February 21, 2009, 06:37:13 AM
Code: [Select]
let name$ = prompt$("What's your name?")

This saves the name the player enters in name$.
If you want a maximum of characters, you would do this:
Code: [Select]
let name$ = prompt$("What's your name?",20)
This restricts the player from entering a name longer than 20 characters.
Title: Re: Is this for me
Post by: bellybot1 on March 17, 2009, 11:24:45 PM
hi guys

Well after a longish break I got back to the game and finished it off. Now how do i upload it onto this website and also i was wondering Rougesoft if i was able to use two of your sprites as i have used them because i couldn't find ones like them anywhere else.

Thanks

OH and if you didn't know i'm using silver creator.
Title: Re: Is this for me
Post by: Silverwind on March 18, 2009, 06:53:26 AM
You're more than welcome to use my sprites, and as for uploading the game to the internet: First highlight the file on your desktop and select File > Create Archive from the Finder bar. Once you've created the archive you can upload it using a site like MediaFire: http://www.mediafire.com/

If you have any problems or if my instructions sound like gibberish, too bad! Er, I mean... just say so and I'll gladly help. :)

Can't wait to see your game!
Title: Re: Is this for me
Post by: bellybot1 on March 18, 2009, 01:53:29 PM
cool ive sent my game away to be verified hopefully it will be up soon.
Title: Re: Is this for me
Post by: Silverwind on March 18, 2009, 02:04:37 PM
Cool. Ghost is usually online daily, so you shouldn't be waiting long. You could always post a link to it in the meantime if you wanted though.
Title: Re: Is this for me
Post by: GMG Tim on March 18, 2009, 06:15:21 PM
Quote
cool ive sent my game away to be verified hopefully it will be up soon.

This is the link bellybot1 gave me: http://www.mediafire.com/?tizeqltym2n

bellybot, could you please compile the game and resubmit? Or would you still like me to post just the SC file?

Also, next time give me more information when you submit the game... I have no clue what kind of game this is, or what the description is, or what section of the site you want it in.

Ghost
Title: Re: Is this for me
Post by: bellybot1 on March 18, 2009, 09:50:41 PM
ok sorry about that ghost. I didn't know what to do when submitting a game as this is my first time ok ill send a new file. And when you say compile do you mean just putting all the pictures and stuff i used into a folder.
Title: Re: Is this for me
Post by: bellybot1 on March 18, 2009, 10:08:24 PM
oh sorry just realized what compile was but which platforms do i support it on. And is their any other things i need to do.
Title: Re: Is this for me
Post by: bellybot1 on March 19, 2009, 02:01:14 AM
OK sent the proper file away to be verified so hopefully it'll be up on the website soon. I have already started thinking and trialing out my second game which will be like that old hand held black and white game where your a car and you can move left or right. You have to dodge the cars as they go down the screen. When i actually start i'll make a new topic.

Thanks for all your help guys.
Title: Re: Is this for me
Post by: GMG Tim on March 19, 2009, 02:42:46 AM
Thank you!

Ghost

EDIT: Moved to SilverCreator help since this is a SilverCreator project.
Title: Re: Is this for me
Post by: bellybot1 on March 22, 2009, 01:48:14 AM
Ummmm. I was just wondering when my game is being loaded onto the website or did i forget to do something.

Thanks.
Title: Re: Is this for me
Post by: Tireas Dragon on March 29, 2009, 12:40:49 AM
I think it has been. The link in the downloads section is a link to a place contained within this websight.