help!

Game Editor comments and discussion.

help!

Postby DarkParadox » Sat Feb 24, 2007 11:17 pm

whats wrong with this code (i'm not that good i just guessed)
Code: Select all
if(stab==1)
{
    DestroyActor("meanytest.0");
}
else
{
    DestroyActor("link_player");
}

o and meany test means its just a test so i can do it on the real bad guys
User avatar
DarkParadox
 
Posts: 457
Joined: Mon Jan 08, 2007 11:32 pm
Location: USA, Florida.
Score: 84 Give a positive score

Postby UltimatHedgehog » Sat Feb 24, 2007 11:21 pm

link as in legend of zelda
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 DarkParadox » Sat Feb 24, 2007 11:28 pm

ya im creating a zelda game
User avatar
DarkParadox
 
Posts: 457
Joined: Mon Jan 08, 2007 11:32 pm
Location: USA, Florida.
Score: 84 Give a positive score

Postby UltimatHedgehog » Sat Feb 24, 2007 11:38 pm

i want next
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 » Sun Feb 25, 2007 12:01 am

What do you want next?
and why is the topic "Help!"?
: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 DarkParadox » Sun Feb 25, 2007 1:24 am

because i need help
User avatar
DarkParadox
 
Posts: 457
Joined: Mon Jan 08, 2007 11:32 pm
Location: USA, Florida.
Score: 84 Give a positive score

Postby DarkParadox » Sun Feb 25, 2007 1:25 am

because i need help
User avatar
DarkParadox
 
Posts: 457
Joined: Mon Jan 08, 2007 11:32 pm
Location: USA, Florida.
Score: 84 Give a positive score

Postby UltimatHedgehog » Sun Feb 25, 2007 1:26 am

you sure do :lol:
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 » Sun Feb 25, 2007 1:27 am

*wispering* with your serious mental problems

<_<
>_>
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 » Sun Feb 25, 2007 1:28 am

what do you now need help with?
: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 DarkParadox » Sun Feb 25, 2007 1:36 am

whats wrong with this code
Code: Select all
if(stab==1)
{
    DestroyActor("meanytest.0");
}
else
{
    DestroyActor("link_player");

User avatar
DarkParadox
 
Posts: 457
Joined: Mon Jan 08, 2007 11:32 pm
Location: USA, Florida.
Score: 84 Give a positive score

Postby Sgt. Sparky » Sun Feb 25, 2007 1:40 am

does it say "Error" or somthing?
you can/must use else if(so and so is so and so)
:)
but you can still use {
and }
: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 Game A Gogo » Sun Feb 25, 2007 1:40 am

send me a ged file whit the data files, and i should be able to resolve your problem
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby DarkParadox » Sun Feb 25, 2007 1:45 am

somthings wrong with the code no matter what it always kills the actor (not link_player!!).
User avatar
DarkParadox
 
Posts: 457
Joined: Mon Jan 08, 2007 11:32 pm
Location: USA, Florida.
Score: 84 Give a positive score

Postby Kodo » Sun Feb 25, 2007 1:47 am

There's actually nothing wrong with your code (as you’ve got it displayed here, assuming that both actors exist and the variable 'stab' has also been created), but it sounds like the condition stab==1 is never true. For meanytest to be destroyed stab must be set to 1 in an event somewhere before this code is run.
Inogames: http://www.inogames.com iOS gaming
Firetop Adventure (app store): http://itunes.apple.com/us/app/firetop- ... ?mt=8&ls=1
User avatar
Kodo
 
Posts: 449
Joined: Thu Oct 20, 2005 8:20 pm
Location: UK
Score: 23 Give a positive score

Next

Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron