Page 1 of 1

I have a few questions

PostPosted: Tue Sep 09, 2008 12:46 am
by RedvsBlue126
1. How do you make your player move using the arrow keys?
2. How do you make an item "solid" so things dont fall throught it?

Re: I have a few questions

PostPosted: Tue Sep 09, 2008 1:53 am
by BlarghNRawr
newbie?
1- in the actor control use a keydown event (and press the right arrow key) then click script editor... put in exactly
Code: Select all
xvelocity = xvelocity = +5;
then do the same thing for the left arrow key, only putting the in left arrow key and -5; instead of +5;.. Make sense?

2- put collision event, then the physical response event... then change the thirs value to 0.. make sense as well?

Re: I have a few questions

PostPosted: Tue Sep 09, 2008 11:36 am
by RedvsBlue126
I have found if you want the character to stop when you let go to enter "x = x + 5"

also, how do you make your player change directions when going the other way?
How do you make your player shoot?

I also have a problem that whenever my platform is uneven my player falls through it

Re: I have a few questions

PostPosted: Tue Sep 09, 2008 3:52 pm
by Bee-Ant
Make 2 integer actor variables called :
1. right
2. anim
RedvsBlue126 wrote:how do you make your player change directions when going the other way?

Player>KeyDown>Left
Code: Select all
x-=3;
right=0;
if(anim==0)
{
    ChangeAnimation("Event Actor","WalkLeft",FORWARD);
    anim=1;
}

Player>KeyDown>Right
Code: Select all
x+=3;
right=1;
if(anim==0)
{
    ChangeAnimation("Event Actor","WalkRight",FORWARD);
    anim=1;
}

Player>AnimationFinish>AnyAnimation
Code: Select all
anim=1;

RedvsBlue126 wrote:How do you make your player shoot?

Player>KeyDown>Shoot
Code: Select all
if(right==1)
{
    ChangeAnimation("Event Actor","ShootRight",FORWARD);
}
if(right==0)
{
    ChangeAnimation("Event Actor","ShootLeft",FORWARD);
}
//CreateActor=>Ammo

Player>AnimationFinish>ShootRight
Code: Select all
ChangeAnimation("Event Actor","StopRight",FORWARD);

Player>AnimationFinish>ShootLeft
Code: Select all
ChangeAnimation("Event Actor","StopLeft",FORWARD);

Ammo>CreateActor>
Code: Select all
if(Player.right==1)
{
    angle=0;
}
if(Player.right==0)
{
    angle=180;
}
directional_velocity=15;

RedvsBlue126 wrote:I also have a problem that whenever my platform is uneven my player falls through it

Are you sure your collision event is repeated???I mean have you clicked "No" to "Yes" on the collision event dialog???

Actually this is the 1xxth question about this stuff...just search them 8)

Re: I have a few questions

PostPosted: Wed Sep 10, 2008 12:49 am
by RedvsBlue126
Could you be more specific on the shooting part, I put in what's in the box and it wont accept it.

Re: I have a few questions

PostPosted: Wed Sep 10, 2008 11:10 am
by RedvsBlue126
If shooting is too hard to explain, could you tell me how to make something appear right in front of the character when I hit a key and dissapear when I let go of it but it always be in the same spot in front of the character no matter where it is and appear on the other side of the character when it is facing the other way?

Re: I have a few questions

PostPosted: Sat Sep 13, 2008 12:20 pm
by Bee-Ant
Did you copy-paste my code???thats bad.
Do you know how to create actor?

Re: I have a few questions

PostPosted: Sat Sep 13, 2008 7:38 pm
by RedvsBlue126
I actually figured out how to shoot by reading another topic, so all I really need now is help making enemies that shoot at you like once every few seconds instead of constantly.

Re: I have a few questions

PostPosted: Sat Sep 13, 2008 9:46 pm
by BlarghNRawr
make a random timer for about 3000 to 6000 and set it to repeat forever

then when the timer finishes make a shot created

Re: I have a few questions

PostPosted: Sun Sep 14, 2008 1:19 pm
by RedvsBlue126
How do I make it so that when the player is destroyed the view's parent changes to an offscreen player and the screen moves to that player every time I try to make the view change parents it just falls when the player is destroyed

Re: I have a few questions

PostPosted: Mon Sep 15, 2008 12:40 pm
by Bee-Ant
Oh my...this stuff is just need variable+IF function playing...
Code: Select all
if(variable1==1)
{
    //change view parent to offscreen
}
if(variable1==0)
{
    //change view parent to player
}

Etc...etc...
Btw, I'm lazy too describe this...quite long codes :mrgreen:
Anyone can help???

Re: I have a few questions

PostPosted: Fri Sep 19, 2008 11:08 pm
by RedvsBlue126
am I allowed to upload games anywhere for anyone to play? like not just ppl who have ge? do I have to get the full version to do this?

Re: I have a few questions

PostPosted: Sat Sep 20, 2008 1:23 am
by BlarghNRawr
you dont need ge to play a game if its is exported, and you dont need the full version to export
file => export

Re: I have a few questions

PostPosted: Sat Sep 20, 2008 12:40 pm
by RedvsBlue126
yes but am I allowed to export it anywhere if it is made with ge?

Re: I have a few questions

PostPosted: Sat Sep 20, 2008 4:36 pm
by BlarghNRawr
if you dont have the full version, you cant make and icon for the game(it will always be the ge symbol), in the bottom left corner it will say made with game editor, and you can only export games for windows executable...
thoe are the only drawbacks for not having full version