Page 1 of 3

HOWWWWW??

PostPosted: Sun Jan 11, 2009 8:53 am
by johnstone000
I WANT TO MAKE A GAME!!!! HOWWWWW?????

Re: HOWWWWW??

PostPosted: Sun Jan 11, 2009 11:24 am
by skydereign
This really depends on what type of game... If you need help and already have a concept then we'll need a bit more info to help. If you want to know how to use gameEditor, I suggest running through some demos, just to get a feel for it.

Re: HOWWWWW??

PostPosted: Sun Jan 11, 2009 10:23 pm
by johnstone000
i would like to make a simple dodge game and i basically know nothing =\

Re: HOWWWWW??

PostPosted: Mon Jan 12, 2009 3:46 am
by skydereign
Well, again I suggest you learn how to give basic actions to actors. So the game you want is to have your main actor move around, avoiding objects? That would be relatively easy... But first you really need to know how to use the actors. For your game idea I would create an actor that is constantly moving around the screen that randomly creates other actors, which would destroy or injure your main actor. Also have a count going on, assuming there is a point system. I can explain further when you know more about the gameEditor system. Most of the demos are pretty short and easy to understand.

Re: HOWWWWW??

PostPosted: Mon Jan 12, 2009 5:30 am
by Caaz Games
johnstone000 wrote:i would like to make a simple dodge game and i basically know nothing =\

took me a while but i found my old game, is it something like this you want to make?
viewtopic.php?f=6&t=3083
you cal look in the code

Re: HOWWWWW??

PostPosted: Mon Jan 12, 2009 6:12 am
by johnstone000
oops dont read this

Re: HOWWWWW??

PostPosted: Mon Jan 12, 2009 6:14 am
by johnstone000
Caaz Games wrote:
johnstone000 wrote:i would like to make a simple dodge game and i basically know nothing =\

took me a while but i found my old game, is it something like this you want to make?
viewtopic.php?f=6&t=3083
you cal look in the code


ya but like on a loop =] and i found out how to make my guy move!!! YAY!

Re: HOWWWWW??

PostPosted: Mon Jan 12, 2009 6:33 am
by johnstone000
It wont let me make my guy move diagonally

To make my guy move south-west I think I would only have to do this...

1. Right click Actor and select Actor Control
2. Click Events: Add then Key Down
3. Type in left, down(using arrow keys)
4. Execute When: All keys are pressed
5. Click Add Action then Move To
6. Actor: Actor1
7. Relative to: Actor1
8. Position x:-5
9. Position y:-5
10. Velocity:8
11. Now click Add then Immediate Action

Now shouldn't this work to make my guy move south-west when I press the left and right arrow keys together?
Any ideas?

Re: HOWWWWW??

PostPosted: Mon Jan 12, 2009 6:50 am
by skydereign
I suggest using a separate keydown event for each direction. Up, Down, Left, Right, and each moves the proper direction. Then when holding both, left and down, it will move you diagonally.

Re: HOWWWWW??

PostPosted: Mon Jan 12, 2009 7:07 am
by johnstone000
what do you mean?

Re: HOWWWWW??

PostPosted: Mon Jan 12, 2009 8:10 am
by skydereign
Add a keydown events, choose script editor script editor
right key
Code: Select all
x+=5;

left key
Code: Select all
x-=5;

up key
Code: Select all
y-=5;

down key
Code: Select all
y+=5;

Re: HOWWWWW??

PostPosted: Mon Jan 12, 2009 11:17 pm
by johnstone000
I dont get it :roll:

Re: HOWWWWW??

PostPosted: Mon Jan 12, 2009 11:55 pm
by skydereign
These are the steps.
1. Right click Actor and select Actor Control
2. Click Events: Add then Key Down
3. Type in right(using arrow keys)
4. Click Add Action then Script Editor
5. Type
Code: Select all
x+=5;

6. Click Add, then Immediate action
7. Close

2. Click Events: Add then Key Down
3. Type in left(using arrow keys)
4. Click Add Action then Script Editor
5. Type
Code: Select all
x-=5;

6. Click Add, then Immediate action
7. Close


2. Click Events: Add then Key Down
3. Type in up(using arrow keys)
4. Click Add Action then Script Editor
5. Type
Code: Select all
y-=5;

6. Click Add, then Immediate action
7. Close


2. Click Events: Add then Key Down
3. Type in down(using arrow keys)
4. Click Add Action then Script Editor
5. Type
Code: Select all
y+=5;

6. Click Add, then Immediate action
7. Close


Another way, ignore this if it is too complicated... I prefer this method as I prefer doing most of my code in the script editor, but it requires a small amount of coding knowledge...
1. Right click Actor and select Actor Control
2. Click Events: Add then Draw Actor
3. Click Add Action then Script Editor
5. Type
Code: Select all
char *key=GetKeyState();
if (key[KEY_RIGHT]==1)
{
   x+=5;
}
if (key[KEY_LEFT]==1)
{
   x-=5;
}
if (key[KEY_DOWN]==1)
{
   y+=5;
}
if (key[KEY_UP]==1)
{
   y-=5;
}

6. Click Add, then Immediate action
7. Close

Re: HOWWWWW??

PostPosted: Tue Jan 13, 2009 12:05 am
by johnstone000
dont read this

Re: HOWWWWW??

PostPosted: Tue Jan 13, 2009 12:18 am
by skydereign
If you are doing it by the keydown event, then you can change the setting, repeat, to disable. This will create one bullet each time it you press space.