Adventure game tutorial?

  • (2 Pages)
  • +
  • 1
  • 2

18 Replies - 13071 Views - Last Post: 19 February 2009 - 09:14 AM

#1 johnmatthais  Icon User is offline

  • D.I.C Regular

Reputation: 12
  • View blog
  • Posts: 271
  • Joined: 21-January 09

Adventure game tutorial?

Posted 25 January 2009 - 08:25 PM

For something like Samorost, or maybe like Monkey Island, but I'm looking into doing something more in the gameplay style of Samorost.
I'm not exactly used to ActionScript and have learned some of the basic functions but often have to reference them anyways (I've only used it for scripting in videos so far...and a simple little thing in a tutorial for input and gravity).
I figured that it would probably be easier to do this in ActionScript first because the learning curve is more gradual and then port it to another language if I really want to, using the ActionScript functions as a guideline for what I'd need to do in that language. For a rough draft, I guess you could say. ;)

Anyways, if something of the sort exists, I'd gladly ask to be shown in the direction to it.
:)

Is This A Good Question/Topic? 0
  • +

Replies To: Adventure game tutorial?

#2 GreenSpiral  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 64
  • Joined: 30-December 08

Re: Adventure game tutorial?

Posted 26 January 2009 - 07:26 AM

So you're trying to make kind of an adventure click & point game? What do you mean gravity and input? Textfield input?Platformer gravity?
Was This Post Helpful? 0
  • +
  • -

#3 johnmatthais  Icon User is offline

  • D.I.C Regular

Reputation: 12
  • View blog
  • Posts: 271
  • Joined: 21-January 09

Re: Adventure game tutorial?

Posted 26 January 2009 - 02:24 PM

I mean I only know about platformer gravity and key input for movement, etc.

And yeah, I'm trying to make a kind of point-and-click adventure.
Was This Post Helpful? 0
  • +
  • -

#4 GreenSpiral  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 64
  • Joined: 30-December 08

Re: Adventure game tutorial?

Posted 26 January 2009 - 05:29 PM

if you're doing point-and-click you need to know:

_xmouse --> this is the x coordinates of the mouse
_ymouse --> this is the y coordinates of the mouse
key.isDown("1") --> key 1 is the left mouse-click

if you don't know about x and y coordinates just ask :)


Another question: User friendly i.e. you can't die... or where you can die

This post has been edited by GreenSpiral: 26 January 2009 - 05:43 PM

Was This Post Helpful? 0
  • +
  • -

#5 johnmatthais  Icon User is offline

  • D.I.C Regular

Reputation: 12
  • View blog
  • Posts: 271
  • Joined: 21-January 09

Re: Adventure game tutorial?

Posted 26 January 2009 - 06:54 PM

Yeah I have trouble with x and y coordinates.
I don't quite understand positioning and something's pretty much always off for me, even in the simplest of games.

I'm not planning on dying being an option.

Other questions I have:

What's a good way to make it so that the user can only interact with what's next to him and still use the universal one-click-for-everything method, rather than have the bar at the bottom like in most LucasArts games?

And then, is there a way to make 4 layers for the scenario? Like a background that the player can't physically interact with and is always behind the player, a foreground that is always in front of the player, a middle layer that the player is a part of (ground, pillars, etc) and then another layer for interactive objects that sort of blend in with all layers?

Also, in reference to the layers, what's a good way to do the semi-z axis that most adventure games seem to include?

How do you make it so that the player will stay on top of the ground that's in the layer he's part of and when you go forward to an object that's semi in-the-way, keep him from moving past it?

*NOTE* If you can't tell by now, I'm not accustomed to making games at all, haha. Hence, why I asked for a tutorial... xD
I kind of figured a Samorost type-thing would be easier, because it's mostly hotspots and animation.
Which would you suggest starting with?

This post has been edited by johnmatthais: 26 January 2009 - 07:14 PM

Was This Post Helpful? 0
  • +
  • -

#6 Auzzie  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 43
  • View blog
  • Posts: 573
  • Joined: 20-January 09

Re: Adventure game tutorial?

Posted 26 January 2009 - 07:23 PM

Personally i would suggest that first of all, write down a list of ideas for your game, then write out what you think you need to do for each item on the list, then learn the right actionscript/flash so that you are able to do what is on your list.
Was This Post Helpful? 0
  • +
  • -

#7 johnmatthais  Icon User is offline

  • D.I.C Regular

Reputation: 12
  • View blog
  • Posts: 271
  • Joined: 21-January 09

Re: Adventure game tutorial?

Posted 26 January 2009 - 07:26 PM

I've got ideas, but haven't separated good from bad.
My main hang up is the decision to make it more puzzle/adventure or fully-featured Monkey Island style adventure.
The main things I asked about were simply gameplay mechanics, hehe.

This post has been edited by johnmatthais: 26 January 2009 - 07:28 PM

Was This Post Helpful? 0
  • +
  • -

#8 GreenSpiral  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 64
  • Joined: 30-December 08

Re: Adventure game tutorial?

Posted 27 January 2009 - 02:12 PM

Try doing buttons,then you can do something with onclick and stuff, and on rollover. You can also have a sprite that is invisible _visible = false and then have it equal true and do play() so that is plays your clip or gotoandStop() or gotoandPlay() to make it do something.This sprite can be over top of your button and also have the and then remove the button or something. I don't know about z-axis?? and semi layer something??
Was This Post Helpful? 0
  • +
  • -

#9 descalabro  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 10-February 09

Re: Adventure game tutorial?

Posted 10 February 2009 - 07:10 PM

View Postjohnmatthais, on 25 Jan, 2009 - 07:25 PM, said:

For something like Samorost, or maybe like Monkey Island, but I'm looking into doing something more in the gameplay style of Samorost.
I'm not exactly used to ActionScript and have learned some of the basic functions but often have to reference them anyways (I've only used it for scripting in videos so far...and a simple little thing in a tutorial for input and gravity).
I figured that it would probably be easier to do this in ActionScript first because the learning curve is more gradual and then port it to another language if I really want to, using the ActionScript functions as a guideline for what I'd need to do in that language. For a rough draft, I guess you could say. ;)

Anyways, if something of the sort exists, I'd gladly ask to be shown in the direction to it.
:)



Hello.

I'm trying to do a graphic adventure game too. I started recently too, but I can share my main difficulties with you:

1 Controling the hero: I intend to use keys and "free" navigation for my game hero. (Samorost used a mouse controled hero with predefined navigation: you could not get him to reach a point in the map you chose specifically)

2 Dealing with objects and, the hardest part, a menu for objects to chose from and use. (Samorost's hero would use the objects in the area and would not store them)

3 Systems of mechanisms (puzzles) activated by the hero and/or his objects. (Most of the ones used in Samorost were fairly simple to do in what concerns the code)

4 A free map navigation system. (In Samorost you had many independent screens: in most of them, you didn't need to go back and forth doing things to advance to the next screen)

5 A Save/Load system to store and load all the variables of the game: variables for hero and objects' positions, mechanisms' states, activated/deactivated buttons, last frame visited, etc.

6 Always finding the simplest way to solve my coding/logic problems, so the game will be smoother to run and smaller to store.


For now, I think these will be my most serious technical issues to solve. I'm sure a lot more will come, but it is already being quite fun to work these problems out.

Also, I would like to state that Samorost is an awesome game in my opinion, and my comparisons serve merely for a technical analysis of how the games are made in what concerns the code; I don't mean for a second to say my game will be any better than Samorost (I'm just starting to do it !!).

Share your experience as you advance in your game. :)
Was This Post Helpful? 0
  • +
  • -

#10 descalabro  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 10-February 09

Re: Adventure game tutorial?

Posted 10 February 2009 - 07:17 PM

View PostGreenSpiral, on 26 Jan, 2009 - 04:29 PM, said:

if you're doing point-and-click you need to know:

_xmouse --> this is the x coordinates of the mouse
_ymouse --> this is the y coordinates of the mouse
key.isDown("1") --> key 1 is the left mouse-click

if you don't know about x and y coordinates just ask :)


Another question: User friendly i.e. you can't die... or where you can die


Hello.

Do you know how to get the x and y coordinates for a movie clip too?

For example:

if (movieclip x coordinate > 500) {
movieclip._x = 450;
}

Thank you.
Was This Post Helpful? 0
  • +
  • -

#11 skater_00  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 12
  • View blog
  • Posts: 256
  • Joined: 30-April 08

Re: Adventure game tutorial?

Posted 10 February 2009 - 10:31 PM

View Postdescalabro, on 11 Feb, 2009 - 03:17 AM, said:

Hello.

Do you know how to get the x and y coordinates for a movie clip too?

For example:

if (movieclip x coordinate > 500) {
movieclip._x = 450;
}

Thank you.


You wrote the answer in your own question. :)

AS2:
clip._x
clip._y

if (clip._x > 500)
{

}


AS3:
clip.x
clip.y

if (clip.x > 500)
{

}

Was This Post Helpful? 0
  • +
  • -

#12 descalabro  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 10-February 09

Re: Adventure game tutorial?

Posted 11 February 2009 - 05:17 AM

Yes I did, lol...

Minutes later I was experimenting and realized it, hehe.

For some strange reason I had the feeling that clip._x and clip._y was used only to set the position of the clip and not to capture or trace it.

Thank you. :)
Was This Post Helpful? 0
  • +
  • -

#13 GreenSpiral  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 64
  • Joined: 30-December 08

Re: Adventure game tutorial?

Posted 11 February 2009 - 04:32 PM

The mouse x and y doesn't seem to be working for me. I am using
the right name but could you give me an example of it in use?
Was This Post Helpful? 0
  • +
  • -

#14 descalabro  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 10-February 09

Re: Adventure game tutorial?

Posted 12 February 2009 - 12:40 PM

I have yet another question, if I may:

Is there a way of having a movieClip doing hittest for any movieClip colliding it?

something like:

if (this, hitTest(anyMovieClip)) {
trace("something is colliding with this");
	}



Thank you for any help.
Was This Post Helpful? 0
  • +
  • -

#15 skater_00  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 12
  • View blog
  • Posts: 256
  • Joined: 30-April 08

Re: Adventure game tutorial?

Posted 12 February 2009 - 03:09 PM

descalabro, is it something like this you're looking for?

var array:Array = [mc1, mc2, mc3, mc4, mc5];     // Store all MovieClip's in an Array

stage.addEventListener(Event.ENTER_FRAME, enterFrameHandler);     // Add event listener for ENTER_FRAME event to the stage

function enterFrameHandler(event:Event):void
{
	for (var i:uint = 0; i < array.length; i++)
	{
		if (this.hitTestObject(array[i]))     // "If this collides with any object in array (your stored MovieClip's), then ..."
		{
			trace("something is colliding with this");
		}
	}
}

Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2