I have a few questions

Non-platform specific questions.

I have a few questions

Postby RedvsBlue126 » Tue Sep 09, 2008 12:46 am

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?
Leadership isn't about firing bullets and stabbing people, It's about telling others to fire bullets and stab people. -Doc
User avatar
RedvsBlue126
 
Posts: 12
Joined: Mon Sep 08, 2008 10:45 pm
Score: 1 Give a positive score

Re: I have a few questions

Postby BlarghNRawr » Tue Sep 09, 2008 1:53 am

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?
Download Game Music
current projects:
Bold! ?% Started mechanics
Unnamed puzzle game 60% --i need a name!--
User avatar
BlarghNRawr
 
Posts: 767
Joined: Wed Jun 25, 2008 12:36 am
Location: Not using G-E anymore. Now using Source SDK.
Score: 27 Give a positive score

Re: I have a few questions

Postby RedvsBlue126 » Tue Sep 09, 2008 11:36 am

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
Leadership isn't about firing bullets and stabbing people, It's about telling others to fire bullets and stab people. -Doc
User avatar
RedvsBlue126
 
Posts: 12
Joined: Mon Sep 08, 2008 10:45 pm
Score: 1 Give a positive score

Re: I have a few questions

Postby Bee-Ant » Tue Sep 09, 2008 3:52 pm

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)
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: I have a few questions

Postby RedvsBlue126 » Wed Sep 10, 2008 12:49 am

Could you be more specific on the shooting part, I put in what's in the box and it wont accept it.
Leadership isn't about firing bullets and stabbing people, It's about telling others to fire bullets and stab people. -Doc
User avatar
RedvsBlue126
 
Posts: 12
Joined: Mon Sep 08, 2008 10:45 pm
Score: 1 Give a positive score

Re: I have a few questions

Postby RedvsBlue126 » Wed Sep 10, 2008 11:10 am

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?
Leadership isn't about firing bullets and stabbing people, It's about telling others to fire bullets and stab people. -Doc
User avatar
RedvsBlue126
 
Posts: 12
Joined: Mon Sep 08, 2008 10:45 pm
Score: 1 Give a positive score

Re: I have a few questions

Postby Bee-Ant » Sat Sep 13, 2008 12:20 pm

Did you copy-paste my code???thats bad.
Do you know how to create actor?
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: I have a few questions

Postby RedvsBlue126 » Sat Sep 13, 2008 7:38 pm

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.
Leadership isn't about firing bullets and stabbing people, It's about telling others to fire bullets and stab people. -Doc
User avatar
RedvsBlue126
 
Posts: 12
Joined: Mon Sep 08, 2008 10:45 pm
Score: 1 Give a positive score

Re: I have a few questions

Postby BlarghNRawr » Sat Sep 13, 2008 9:46 pm

make a random timer for about 3000 to 6000 and set it to repeat forever

then when the timer finishes make a shot created
Download Game Music
current projects:
Bold! ?% Started mechanics
Unnamed puzzle game 60% --i need a name!--
User avatar
BlarghNRawr
 
Posts: 767
Joined: Wed Jun 25, 2008 12:36 am
Location: Not using G-E anymore. Now using Source SDK.
Score: 27 Give a positive score

Re: I have a few questions

Postby RedvsBlue126 » Sun Sep 14, 2008 1:19 pm

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
Leadership isn't about firing bullets and stabbing people, It's about telling others to fire bullets and stab people. -Doc
User avatar
RedvsBlue126
 
Posts: 12
Joined: Mon Sep 08, 2008 10:45 pm
Score: 1 Give a positive score

Re: I have a few questions

Postby Bee-Ant » Mon Sep 15, 2008 12:40 pm

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???
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: I have a few questions

Postby RedvsBlue126 » Fri Sep 19, 2008 11:08 pm

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?
Leadership isn't about firing bullets and stabbing people, It's about telling others to fire bullets and stab people. -Doc
User avatar
RedvsBlue126
 
Posts: 12
Joined: Mon Sep 08, 2008 10:45 pm
Score: 1 Give a positive score

Re: I have a few questions

Postby BlarghNRawr » Sat Sep 20, 2008 1:23 am

you dont need ge to play a game if its is exported, and you dont need the full version to export
file => export
Download Game Music
current projects:
Bold! ?% Started mechanics
Unnamed puzzle game 60% --i need a name!--
User avatar
BlarghNRawr
 
Posts: 767
Joined: Wed Jun 25, 2008 12:36 am
Location: Not using G-E anymore. Now using Source SDK.
Score: 27 Give a positive score

Re: I have a few questions

Postby RedvsBlue126 » Sat Sep 20, 2008 12:40 pm

yes but am I allowed to export it anywhere if it is made with ge?
Leadership isn't about firing bullets and stabbing people, It's about telling others to fire bullets and stab people. -Doc
User avatar
RedvsBlue126
 
Posts: 12
Joined: Mon Sep 08, 2008 10:45 pm
Score: 1 Give a positive score

Re: I have a few questions

Postby BlarghNRawr » Sat Sep 20, 2008 4:36 pm

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
Download Game Music
current projects:
Bold! ?% Started mechanics
Unnamed puzzle game 60% --i need a name!--
User avatar
BlarghNRawr
 
Posts: 767
Joined: Wed Jun 25, 2008 12:36 am
Location: Not using G-E anymore. Now using Source SDK.
Score: 27 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron