Following an actor (Catterpillar Script)

Post here your demos and examples with the source files.
Forum rules
Always post the games with a screenshot.
The file must have the ged and data files (complete game source)
Use the forum attachment to post the files.
It is always better to use the first post to put the game files

Following an actor (Catterpillar Script)

Postby Hblade » Tue Mar 20, 2007 6:47 pm

This is a catterpillar script, the download is in my second message
Last edited by Hblade on Tue Mar 20, 2007 8:09 pm, edited 1 time in total.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Postby UltimatHedgehog » Tue Mar 20, 2007 6:51 pm

im the only one to download :(
Image
I always thought Hell would be a giant load screen that goes on for eternity, then one day, eons later, it would end, only to reveal a slightly different loading screen.
User avatar
UltimatHedgehog
 
Posts: 325
Joined: Fri Jan 19, 2007 1:48 pm
Location: http://downloads.khinsider.com/?u=112542 plz click
Score: 10 Give a positive score

Postby UltimatHedgehog » Tue Mar 20, 2007 6:55 pm

it doesnt work the data folder is empty
Image
I always thought Hell would be a giant load screen that goes on for eternity, then one day, eons later, it would end, only to reveal a slightly different loading screen.
User avatar
UltimatHedgehog
 
Posts: 325
Joined: Fri Jan 19, 2007 1:48 pm
Location: http://downloads.khinsider.com/?u=112542 plz click
Score: 10 Give a positive score

Postby makslane » Tue Mar 20, 2007 7:18 pm

Please, upload the data files and a screenshot.
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Sorry about that, guys. Here is the demo.

Postby Hblade » Tue Mar 20, 2007 8:08 pm

Sorry about that, guys, here is the demo.
Attachments
Follow me demo..zip
Dem9o. Demo.
(1.86 MiB) Downloaded 504 times
Screen shoit..png
Game Screenshot.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Postby Sgt. Sparky » Tue Mar 20, 2007 9:10 pm

any pictures on Hblade the game? :D
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Postby UltimatHedgehog » Tue Mar 20, 2007 9:18 pm

follow me, set me free, trust me and we will escape from the city

thats a sonic song :D um....good job could you say what part of the script makes him follow
Image
I always thought Hell would be a giant load screen that goes on for eternity, then one day, eons later, it would end, only to reveal a slightly different loading screen.
User avatar
UltimatHedgehog
 
Posts: 325
Joined: Fri Jan 19, 2007 1:48 pm
Location: http://downloads.khinsider.com/?u=112542 plz click
Score: 10 Give a positive score

Yeah.

Postby Hblade » Wed Mar 21, 2007 2:16 am

Yeah, it's from a game called sonic for the gamecube.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Herer it is.

Postby Hblade » Wed Mar 21, 2007 2:20 am

Here's the code
Code: Select all
char *key=GetKeyState();

if (key[KEY_UP] == 1 && key[KEY_DOWN] == 0)
{
    ChangeAnimation("Event Actor", "U............", FORWARD);
}
if (key[KEY_RIGHT] == 1 && key[KEY_LEFT] == 0)
{
    ChangeAnimation("Event Actor", "Wingingiliki", FORWARD);
}
if (key[KEY_RIGHT] == 1 && key[KEY_LEFT] == 0 && key[KEY_UP] == 1)
{
    ChangeAnimation("Event Actor", "U............", FORWARD);
}
if (key[KEY_DOWN] == 1 && key[KEY_UP] == 0)
{
    ChangeAnimation("Event Actor", "WINGIHIIIIIIII.", FORWARD);
}
if (key[KEY_DOWN] == 1 && key[KEY_UP] == 0 &&  key[KEY_RIGHT] == 1)
{
    ChangeAnimation("Event Actor", "Wingingiliki", FORWARD);
}
if (key[KEY_LEFT] == 1 && key[KEY_RIGHT] == 0)
{
    ChangeAnimation("WNRIHIHIHIHIHIHIHIHI", "RINGIHIHIHIHIHIHIHIHI.", FORWARD);
}
if (key[KEY_RIGHT] == 1 && key[KEY_LEFT] == 0 && key[KEY_UP] == 1)
{
    ChangeAnimation("Event Actor", "U............", FORWARD);
}
if (key[KEY_LEFT] == 1 && key[KEY_RIGHT] == 0 && key[KEY_UP] == 1)
{
    ChangeAnimation("Event Actor", "U............", FORWARD);
}
if (key[KEY_RIGHT] == 1 && key[KEY_LEFT] == 1)
{
    ChangeAnimation("Event Actor", "RINGIHIHIHIHIHIHIHIHI.", FORWARD);
}

Then when the actor following you collides with a side of the player just have it change his animation
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Postby Caaz Games » Wed Mar 21, 2007 2:38 am

:shock: :shock: :shock: :shock: :shock: :shock: Thats a biiiig code!!! :shock: :shock: :shock: :shock: :shock:
You are welcome to join my forum. 4 active members lol but it's a cool place. active... much talking :D it's fun!
http://caaz.freeforums.org/
User avatar
Caaz Games
 
Posts: 729
Joined: Wed Feb 14, 2007 9:09 am
Location: California....knows how to party!
Score: 25 Give a positive score

Postby UltimatHedgehog » Wed Mar 21, 2007 9:08 am

can you replace the weird names with up down right and left walk so i know what to put
Image
I always thought Hell would be a giant load screen that goes on for eternity, then one day, eons later, it would end, only to reveal a slightly different loading screen.
User avatar
UltimatHedgehog
 
Posts: 325
Joined: Fri Jan 19, 2007 1:48 pm
Location: http://downloads.khinsider.com/?u=112542 plz click
Score: 10 Give a positive score

Postby Sgt. Sparky » Wed Mar 21, 2007 8:20 pm

I got a bigger
Code: Select all
char*key=GetKeyState();
yvelocity += 1;
if(SLASH == 0)
{
if(key[KEY_LEFT] == 1 && key[KEY_RIGHT] == 0)
{
    gs = 0;
    if(j == 0)x -= 5;
    if(j == 1 && xvelocity > - 5 && hw == 0)xvelocity -= 1;
    if(af == 1 && key[KEY_DOWN] == 0 && j == 0)
    {
        ChangeAnimation("Event Actor", "WL", FORWARD);
        af = 0;
    }
    if(af == 1 && key[KEY_DOWN] == 0 && j == 1)
    {
        ChangeAnimation("Event Actor", "JL", FORWARD);
        af = 0;
    }
    if(af == 1 && key[KEY_DOWN] == 1 && j == 0)
    {
        ChangeAnimation("Event Actor", "CL", FORWARD);
        af = 0;
    }
}
if(key[KEY_LEFT] == 0 && key[KEY_RIGHT] == 1)
{
    gs = 1;
    if(j == 0)x += 5;
    if(j == 1 && xvelocity < 5 && hw == 0)xvelocity += 1;
    if(af == 1 && key[KEY_DOWN] == 0 && j == 0)
    {
        ChangeAnimation("Event Actor", "WR", FORWARD);
        af = 0;
    }
    if(af == 1 && key[KEY_DOWN] == 0 && j == 1)
    {
        ChangeAnimation("Event Actor", "JR", FORWARD);
        af = 0;
    }
    if(af == 1 && key[KEY_DOWN] == 1 && j == 0)
    {
        ChangeAnimation("Event Actor", "CR", FORWARD);
        af = 0;
    }
}
}
if(key[KEY_UP] == 1 && j == 0 && SLASH < 2)
{
    if(gs == 0)ChangeAnimation("Event Actor", "JL", FORWARD);
    if(gs == 1)ChangeAnimation("Event Actor", "JR", FORWARD);
   PlaySound2("data/jump2.wav", 0.555556, 1, 0.000000);
    yvelocity = - 15;
    j = 1;
}
if(key[KEY_SPACE] == 1 && SLASH == 0 && j == 0)
{
    PlaySound2("data/Swipe1.wav", 0.211111, 1, 0.000000);
    if(gs == 0)ChangeAnimation("Event Actor", "SLL", FORWARD);
    if(gs == 1)ChangeAnimation("Event Actor", "SLR", FORWARD);
    SLASH = 1;
}
if(key[KEY_SPACE] == 1 && SLASH == 0 && j == 1)
{
    PlaySound2("data/Swipe1.wav", 0.211111, 1, 0.000000);
    if(gs == 0)ChangeAnimation("Event Actor", "!JLSpiral", FORWARD);
    if(gs == 1)ChangeAnimation("Event Actor", "!JRSpiral", FORWARD);
    SLASH = 1;
}
if(SLASH == 2 && animpos > 3)
{
    if(gs == 0)ChangeAnimation("Event Actor", "SL", FORWARD);
    if(gs == 1)ChangeAnimation("Event Actor", "SR", FORWARD);
    SLASH = 0;
}
if(yvelocity > 4)j = 1;
if(yvelocity < -3)j = 1;
if(Health <= 0)
{
    Life_Count -= 1;
    PlaySound2("data/click.wav", 0.255556, 4, 0.066667);
    x = Spawnpoint.x;
    y = Spawnpoint.y;
    Health = 18;
    CreateActor("effect1", "Effect2", "(none)", "(none)", 0, 0, false);
}
if(Life_Count < 0)
{
 directional_velocity = 0;
 SLASH = -1;
 transp = .999;
 ChangeAnimationDirection("Event Actor", STOPPED);
}
if(sentryCount.textNumber == 0)
{
    if(distance(xscreen, yscreen, portal.xscreen, portal.yscreen) < 400)
    {
        if(yscreen < portal.yscreen)yvelocity += 1;
        if(yscreen > portal.yscreen)yvelocity -= 2;
        if(xscreen > portal.xscreen)xvelocity -= 1;
        if(xscreen < portal.xscreen)xvelocity += 1;
    }
}
if(key[KEY_LEFT] == 1 && key[KEY_RIGHT] == 1)
{
    if(gs == 1 && af == 1)
    {
        ChangeAnimation("Event Actor", "SR", FORWARD);
    }
    if(gs == 0 && af == 1)
    {
        ChangeAnimation("Event Actor", "SL", FORWARD);
    }
}

XD that is only the half that is in use in my SamuraiDude game :D
the other half will be added with a character change,
will be added maybe today or tomarrow! :D
(look at the post for more info in game development under: SamuraiDude[testers])
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Postby Sgt. Sparky » Wed Mar 21, 2007 8:23 pm

oh, most of the code is ineffective without the many other coded actors :D
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Woah.

Postby Hblade » Thu Mar 22, 2007 4:31 pm

Woah. Dude, whats awesome. That is alot of code.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Postby Sgt. Sparky » Thu Mar 22, 2007 4:37 pm

yeah, but its not about how much cod you use, its about how well it functions.
sometimes to make a perfectly functional code it takes alot of code. :D
if you look through my code how the keys interact it allows you to do a special attack in the currently out version. :D
all you do is press the left arrow then the right arrow then the up arrow really fast :D
it makes him slash both ways with a slight circle of his tail around him :D
(he also gets blury)
EDIT: tail is with the second character, for the other one its a sword :D
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score


Return to Game Demos

Who is online

Users browsing this forum: No registered users and 1 guest

cron