praaab wrote:ok i have a few questions on my game that im creating. 1. how do i make my game online, like to make other people play against eachother. 2. how do i make my character shoot from the side hes facing because he only shoots on the right side. 3. how do i create an ai with gravity and shoot.
3. Dunno
praaab wrote:but how do i make the actor able to shoot from both sides
dir = 1;
dir = 0;
CreateActor(...); //You can add the function to script by clicking "variables/functions". Find CreateActor(); from there and create your bullet actor.
if (dir == 1)
{
bullet.xvelocity = 10;
}
else if (dir == 0)
{
bullet.xvelocity = - 10;
}
praaab wrote:yes this helped a lot thank you so much but i have one more question. how do i load my game onto my ipod with geplayer?
Hblade wrote:Draw Actor:
- Code: Select all
yvelocity+=.5;
int move = - 1 + 2 * (x < player.x);
x += 5 * move;
int move = - 1 + 2 * (x < player.x);
x += 5 * move;
ChangeAnimation("Event Actor", getAnimName(x<player.x + 2), NO_CHANGE);
int move = - 1 + 2 * (x < player.x);
x += 5 * move;
switch(move)
{
case -1:
ChangeAnimation("Event Actor", "move_left", NO_CHANGE);
break;
case 1:
ChangeAnimation("Event Actor", "move_right", NO_CHANGE);
break;
}
if(jump==1)
{
yvelocity=-10;
jump=0;
}
CreateActor("bullet", "bullet_anim", "(none)", "(none)", 0, 0, false)->xvelocity=((x<player.x)-(x>player.x))*15;
Users browsing this forum: No registered users and 1 guest