Page 1 of 1

Silly Games from a Silly Dragon

PostPosted: Sat Apr 04, 2009 4:49 am
by sillydraco
hello! my name is Draco, and ive been playing with the game all afternoon and i think i got some stuff down, but there is still a lot of things i want to do! i was inspired to make a game from playing Cave Story (lol lame i know but XD) and i wanted to make my own! all ive got so far is just some practice with movement and floors, but im pleased with it so far! i took some Tails (sonic the hedgehog) sprites and put them in, and i took 5 mins to make my own floor. all it does so far is jump and land on the platform, and he falls off the edge and thats pretty much it. i want to do more, i want to make the rest of the game! but one step at a time i suppose, ill learn more tomorrow!

EDIT:
oh lol the controls!

Left = <
Right = >
Jump = F

Re: Silly Games from a Silly Dragon

PostPosted: Sat Apr 04, 2009 11:18 pm
by Azou
That's ok! Keep going!

Re: Silly Games from a Silly Dragon

PostPosted: Sat Apr 04, 2009 11:35 pm
by sillydraco
now i wanna make some baddies! i can't seem to find any baddie tutorials here, and the wiki is empty :3 i just want them to walk back and forth along a path (or fly) and destroy the player's actor when touched, or maybe have three damage and boom!

Re: Silly Games from a Silly Dragon

PostPosted: Sun Apr 05, 2009 1:07 am
by skydereign
The caveman demo that comes with gameEditor, I think, has what you are looking for. There are three main ways of doing this, the easiest would be by path, shown in the caveman demo. Another is using timers. This link has a demo called knights. You could use the code that moves the knights, and alter the directions and times as you please. Such as making them only move left and right. If you are making a performer it may take a little work.
http://game-editor.com/forum/viewtopic.php?f=4&t=6423&start=45
The last way is just creating your won AI system, which is essentially what you were doing anyways, just adding triggers for you enemy. I can explain further or make a demo of this method or any other method if you wish.

Re: Silly Games from a Silly Dragon

PostPosted: Sun Apr 05, 2009 2:19 am
by jimmynewguy
i will probably make a demo an enemies since many people ask about it. ill try to display a few ways so people can choose which kind they like best :) i might also make a demo request topic, i think there used to be one, but i cant remember........

Re: Silly Games from a Silly Dragon

PostPosted: Sun Apr 05, 2009 3:36 am
by skydereign
Yeah, this is it. Not that many demos came from this though. You should probably make a new thread as you suggested.
http://game-editor.com/forum/viewtopic.php?f=6&t=4938&

Re: Silly Games from a Silly Dragon

PostPosted: Sun Apr 05, 2009 5:56 pm
by jimmynewguy

Re: Silly Games from a Silly Dragon

PostPosted: Sun Apr 05, 2009 7:23 pm
by sillydraco
there should be a reference page with like all kinds of scripts for simple Platform stuff:

moving left and right with arrow keys (i think its in the program itself)

jumping (also there), double jumping, and limiting the jump

health bar, ammo bar, etc bar

picking up items/weapons and a simple inventory at the top of the screen that functions with < and > and "X" to select

item functions: shoot projectiles (and projectile functions), heal, ammo, event item (for the storyline), keys, etc

doors, locked and open

moving from level to level, or room to room via doors / teleporters

enemies and bosses, simple movements (back and forth along paths or until collide), functions and damage

loading screen and in game menu

checkpoints, save points (going back to them when you fall in pits or take too much damage)

falling into pits = die

i cant think of anything else :3

Re: Help with some code!

PostPosted: Tue Apr 07, 2009 7:47 am
by sillydraco
Code: Select all
If ("Draco" Animation = "StandRight");
 {
  xvelocity = 8;
  ChangeAnimation("Energy1", "Energy1", FORWARD);
 }

If ("Draco" Animation = "StandLeft");
 {
   xvelocity = -8;
   ChangeAnimation("Energy1", "Energy2", FORWARD);
 }

If ("Draco" Animation = "WalkRight");
 {
  xvelocity = 8;
  ChangeAnimation("Energy1", "Energy1", FORWARD);
 }

If ("Draco" Animation = "WalkLeft");
 {
  xvelocity = -8;
  ChangeAnimation("Energy1", "Energy2", FORWARD);
 }


alright, i have an event on my Player "Draco", Down Key > Create Actor (Energy1). i also have an event on "Energy1" Create Actor > Script Editor. i am trying to make it so that when i push "F" an energy bullet shoots out from "Draco". i am trying to make an If Then code so that if "Draco" is standing left, the energy is shot out to the left, with the animation "Energy2" (which is the reversed animation shooting to the left) and etc for the others if "Draco" is standing right, or walking left or walking right. but i keep getting the error "Error Line 1, 7, 13, 19, Undeclared Identifyer If". i dunno what else to do :3

Re: Silly Games from a Silly Dragon

PostPosted: Tue Apr 07, 2009 8:44 pm
by jimmynewguy
you have to use animindex funtion

Code: Select all
if(animindex == getAnimIndex("standright") ||
             animindex == getAnimIndex("walkright"))
{
CreateActor("energy1", "energy1", "(none)", "(none)", 0, 0, false);
energy1.xvelocity = 8;
}
else if(animindex == getAnimIndex("standleft") ||
    animindex == getAnimIndex("walkleft"))
{
CreateActor("energy1", "energy1", "(none)", "(none)", 0, 0, false);
energy1.xvelocity = -8;
}


the two line || mean or :)

Re: Silly Games from a Silly Dragon

PostPosted: Tue Apr 07, 2009 11:34 pm
by skydereign
Well, just some syntax for you, you cannot use If, you must write it as if. Also if you are doing a comparison equals, you must make it ==. So,
Code: Select all
if (a==b) // compares a to b
{
    b=c; // sets b to equal c
}