MARIO And The Golden Key

Talk about making games.

Postby d-soldier » Sun Aug 19, 2007 12:38 am

More then likely it's a problem with your monitor's driver, not the size. Since this game runs in "full screen mode", your monitor is having a problem making 320x200 (or whatever it is) the full screen... I would check your monitor's website and update your drivers.
User avatar
d-soldier
 
Posts: 703
Joined: Sun Apr 08, 2007 2:13 am
Score: 61 Give a positive score

Postby Bee-Ant » Sun Aug 19, 2007 1:45 am

Whoa...too large...(and I have to reconstruct my game again..)
I'll repost with window mode...

I still work with 640x480 max of game resolution..(too difficult to draw large images) But thanks for your suggestion...
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

Postby d-soldier » Sun Aug 19, 2007 2:00 am

I was addressing Automail10's problem with his monitor... You keep making games at whatever resolution you want to... :D
User avatar
d-soldier
 
Posts: 703
Joined: Sun Apr 08, 2007 2:13 am
Score: 61 Give a positive score

Postby Oman » Sun Aug 19, 2007 3:38 am

what code did u use so that, wen mario falls off a ledge, he can jump anymore.... i cant figure it out :)
"Beyond a wholesome discipline, be gentle with yourself." - Max Ehrmann
User avatar
Oman
 
Posts: 268
Joined: Tue Oct 31, 2006 4:00 am
Location: Somewhere out there...
Score: 6 Give a positive score

Postby Bee-Ant » Sun Aug 19, 2007 10:45 am

Thanks D...(you always help me),thank you so much..
Sorry Oom...
All of my code are in my computer,my computer is at my home..and I still at other city right now...And I forgot all of my code(I'm so sorry)
may be D-Soldier can help you...
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

Postby Oman » Sun Aug 19, 2007 2:55 pm

ok... d-soldier... any ideas
"Beyond a wholesome discipline, be gentle with yourself." - Max Ehrmann
User avatar
Oman
 
Posts: 268
Joined: Tue Oct 31, 2006 4:00 am
Location: Somewhere out there...
Score: 6 Give a positive score

Postby automail10 » Sun Aug 19, 2007 2:59 pm

my monitor is a tv/monitor.
lol.
Back
User avatar
automail10
 
Posts: 280
Joined: Sun Jun 03, 2007 11:30 pm
Location: On a pancake on a bunny.
Score: 5 Give a positive score

Postby d-soldier » Sun Aug 19, 2007 3:49 pm

Automail10, if it's a tv-monitor, thats probably the problem...
Oman, you want it so he "can't" jump when her falls off a ledge (rather then jumping off the ledge)? Just add a collision-finish event for the player in relation to the ground, which has the same "canjump=0" statement as is included in the jumping keydown event.
User avatar
d-soldier
 
Posts: 703
Joined: Sun Apr 08, 2007 2:13 am
Score: 61 Give a positive score

Postby Sgt. Sparky » Sun Aug 19, 2007 4:52 pm

d-soldier wrote:Automail10, if it's a tv-monitor, thats probably the problem...
Oman, you want it so he "can't" jump when her falls off a ledge (rather then jumping off the ledge)? Just add a collision-finish event for the player in relation to the ground, which has the same "canjump=0" statement as is included in the jumping keydown event.

or just on the draw actor event of the player:
if(yvelocity > 3)canjump = 0;
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 Bee-Ant » Sun Aug 19, 2007 9:26 pm

Ooo..."can't" jump...

I used "collision finish event" of "platform", in put this code :
canjump=0;

Excelent analysis D, 100 for you...

Hi Boss(where are you going??I miss you..ha..ha..ha..)
I think this is the correct code :
if(yvelocity<=-3)canjump=0;
I think that code will work if that actor has more than "-3" of yvelocity in that keydown event...

I think the collision finish event is the best way...
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

Postby Sgt. Sparky » Tue Aug 21, 2007 2:20 pm

Darkboy wrote:I think the collision finish event is the best way...

not if you have more than 1 ground actor or you have a certain types of reactions to the collision. :(

Darkboy wrote:I think this is the correct code :
if(yvelocity<=-3)canjump=0;
I think that code will work if that actor has more than "-3" of yvelocity in that keydown event...

that would only disable jumping while the player is going up,
not while the player is moving down(unless he is falling from a jump.)
Code: Select all
if(yvelocity > 3)canjump = 0;

is the right one. :D

here is the draw actor event of my player for my current project(what I have so far.)
Code: Select all
directional_velocity = 0;
if(pause == 0)
{
char*key=GetKeyState();
int spd = 4;
yrate += gravity;
if(yrate > gravity * 3)j = 1;
if(key[KEY_LEFT] == 1 && key[KEY_RIGHT] == 0)
{
    dir = 0;
    if(sw == 1 && sj == 0)
    {
    if(j == 0)x -= spd;
    if(j == 1 && xrate > -spd)xrate -= spd / 4;
    if(af == 1)
    {
        if(j == 0)ChangeAnimation("Event Actor", "HRL", FORWARD);
        af = 0;
    }
    }
}
if(key[KEY_LEFT] == 0 && key[KEY_RIGHT] == 1)
{
    dir = 1;
    if(sw == 1 && sj == 0)
    {
    if(j == 0)x += spd;
    if(j == 1 && xrate < spd)xrate += spd / 4;
    if(af == 1)
    {
        if(j == 0)ChangeAnimation("Event Actor", "HRR", FORWARD);
        af = 0;
    }
    }
}
if(j == 1 && key[KEY_LEFT] == 0 && key[KEY_RIGHT] == 0)
{
    if(xrate < -.5)xrate += 0.5;
    if(xrate > .5)xrate -= 0.5;
}
if(j == 1 && key[KEY_LEFT] == 1 && key[KEY_RIGHT] == 1)
{
    if(xrate < -.5)xrate += 0.5;
    if(xrate > .5)xrate -= 0.5;
}
if(sj == 0)
{
if(key[KEY_LEFT] == 0 && key[KEY_RIGHT] == 0 && j == 0)
{
    if(af == 1)
    {
        af = 0;
        if(dir == 0)ChangeAnimation("Event Actor", "HSL1", FORWARD);
        if(dir == 1)ChangeAnimation("Event Actor", "HSR1", FORWARD);
        sw = 0;
    }
}
if(key[KEY_LEFT] == 1 && key[KEY_RIGHT] == 1 && j == 0)
{
    if(af == 1)
    {
        af = 0;
        if(dir == 0)ChangeAnimation("Event Actor", "HSL1", FORWARD);
        if(dir == 1)ChangeAnimation("Event Actor", "HSR1", FORWARD);
        sw = 0;
    }
}
}
if(key[KEY_UP] == 1 && j == 0 && sj == 0)
{
    ChangeAnimation("Event Actor", "HareJump", FORWARD);
    sj = 1;
}
if(j == 1 && sj == 0)
{
    if(xrate < -2)
    {
        af = 1;
        sw = 1;
        ChangeAnimation("Event Actor", "HareJL", FORWARD);
    }
    if(xrate > 2)
    {
        af = 1;
        sw = 1;
        ChangeAnimation("Event Actor", "HareJR", FORWARD);
    }
    if(xrate >= -2 && xrate <= 2)
    {
        if(yrate < 0)ChangeAnimation("Event Actor", "HareUp", FORWARD);
        if(yrate >= 0)ChangeAnimation("Event Actor", "HareDown", FORWARD);
        af = 1;
        sw = 1;
    }
}
y += yrate;
if(j == 0)xrate = 0;
x += xrate;
}

I use xrate and yrate(real/float, actor varaibles) to work the same as xvelocity and yvelocity.
why: its alot better for pausing your game, you just have to add a few events that decrease your yrate to 0 when you collide with the ground :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 Sgt. Sparky » Tue Aug 21, 2007 2:25 pm

Darkboy wrote:Hi Boss(where are you going??I miss you..ha..ha..ha..)

what do you mean? :|
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 Bee-Ant » Wed Aug 22, 2007 2:13 am

Sgt. Sparky wrote:
Darkboy wrote:Hi Boss(where are you going??I miss you..ha..ha..ha..)

what do you mean? :|


F0rget it...
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: MARIO And The Golden Key

Postby DarkParadox » Thu Sep 20, 2007 8:07 pm

i found a glitch:
you seem to be able to destroy bricks from the side!?
User avatar
DarkParadox
 
Posts: 457
Joined: Mon Jan 08, 2007 11:32 pm
Location: USA, Florida.
Score: 84 Give a positive score

Re: MARIO And The Golden Key

Postby Bee-Ant » Sat Sep 22, 2007 3:16 am

diormeh wrote:i found a glitch:
you seem to be able to destroy bricks from the side!?

Oh yeah???
Nothing is perfect in this world... :D
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

PreviousNext

Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest