Asterix and Obelix

Talk about making games.

Asterix and Obelix

Postby Camper1995 » Fri Apr 03, 2009 9:03 pm

Hi ppl. First time, I maked antimoonwalking. BUT! Somethink is wrong with JUMPING!
When you press key UP, your character jump, but not only one time. When are you pressing key UP, he
is jumping.
I know,
Code: Select all
if(canjump==1)
{
   yvelocity=-12;
   canjump=0;
}


But somethink is wrong. Can anyone fix me this? I dont know what to do.
I am tryed to fix this 2 hour, but no results.

Can anyone help me please?
I know, I am boring with my stupid questions, but I am not expert. :D

!! At first time, I not used jump easy scripts.!!
It was not easy to create this.


Thnx

Asterix and Obelix JPEG.JPG


Asterix and Obelix - Plz, help me.zip
(205.94 KiB) Downloaded 121 times


Thanks :D
Last edited by Camper1995 on Sun Apr 12, 2009 10:12 am, edited 1 time in total.
Say hello to my little friend.
User avatar
Camper1995
 
Posts: 707
Joined: Tue Dec 30, 2008 7:20 pm
Location: Lost in the past.
Score: 44 Give a positive score

Re: Asterix and Obelix - Somethink wrong with moonwalking?

Postby jimmynewguy » Fri Apr 03, 2009 9:52 pm

here i fixed obelix but asterix you can do :)
Attachments
New WinRAR ZIP archive.zip
(206.22 KiB) Downloaded 108 times
Working on a probably too ambitious project! Wild-west-adventure-RPG-shooter-thing.
User avatar
jimmynewguy
 
Posts: 1137
Joined: Sat Mar 31, 2007 6:27 pm
Score: 89 Give a positive score

Re: Asterix and Obelix - Somethink wrong with moonwalking?

Postby Camper1995 » Sat Apr 04, 2009 11:32 am

Um, sorry but, its not fixed. I press key UP 3x and Obelix jump 3x.
:(

Do you have ICQ or Skype or somethink like that? :wink:
Say hello to my little friend.
User avatar
Camper1995
 
Posts: 707
Joined: Tue Dec 30, 2008 7:20 pm
Location: Lost in the past.
Score: 44 Give a positive score

Re: Asterix and Obelix - Somethink wrong with moonwalking?

Postby Camper1995 » Sat Apr 04, 2009 12:04 pm

I think, somethink is wrong with my GameEditor. Every game, where is only one jumping, character jump infinity times.
How to fix this? Can I reinstall GameEditor? Whats the problem? :cry:
Say hello to my little friend.
User avatar
Camper1995
 
Posts: 707
Joined: Tue Dec 30, 2008 7:20 pm
Location: Lost in the past.
Score: 44 Give a positive score

Re: Asterix and Obelix - Somethink wrong with moonwalking?

Postby Camper1995 » Sat Apr 04, 2009 12:28 pm

Oh my god. This is crazy. I reinstall GE but nothink else happened. Asterix dont jump only one time.
So, I try to make very very easy and basic game with Asterix.
but...

DONT WORK!! :cry: :cry: :cry:

I dont know what to do more.

Look and this and say please, what is wrong.

OMG.zip
(200.66 KiB) Downloaded 117 times


:cry:
Say hello to my little friend.
User avatar
Camper1995
 
Posts: 707
Joined: Tue Dec 30, 2008 7:20 pm
Location: Lost in the past.
Score: 44 Give a positive score

Re: Asterix and Obelix - Somethink wrong with moonwalking?

Postby asmodeus » Sat Apr 04, 2009 12:32 pm

canjump is global! While the other is on ground and sets canjump to one, the other can jump as often as he wants.
User avatar
asmodeus
 
Posts: 483
Joined: Thu Oct 11, 2007 5:04 pm
Location: Germany
Score: 43 Give a positive score

Re: Asterix and Obelix - Somethink wrong with moonwalking?

Postby Camper1995 » Sat Apr 04, 2009 12:38 pm

Oh, I see that error. There is only one =

so I must write:
Code: Select all
if(canjump==1)
{
....
}


But in that game, where are Asterix and Obelix that doesnt work... Why?
Say hello to my little friend.
User avatar
Camper1995
 
Posts: 707
Joined: Tue Dec 30, 2008 7:20 pm
Location: Lost in the past.
Score: 44 Give a positive score

Re: Asterix and Obelix - Somethink wrong with moonwalking?

Postby Camper1995 » Sat Apr 04, 2009 1:01 pm

WAHOOOOO... Finaly, it works... :) :) :) :) :)

I am so happy :D

Problem was in GE. When i write that script in Asterix and in Obelix, it works.
But when I copy that scripts from Obelix to Asterix, it doesnt work..
Huh. I Make this stupid scripts 2 hours. :D
Say hello to my little friend.
User avatar
Camper1995
 
Posts: 707
Joined: Tue Dec 30, 2008 7:20 pm
Location: Lost in the past.
Score: 44 Give a positive score

Re: Asterix and Obelix - Somethink wrong with moonwalking?

Postby jimmynewguy » Sat Apr 04, 2009 5:45 pm

Camper1995 wrote:Um, sorry but, its not fixed. I press key UP 3x and Obelix jump 3x.
:(

Do you have ICQ or Skype or somethink like that? :wink:


oops.... i helped with moonwalking not jumping i read your post wrong.

and i dont have ICQ or Skype, why? :)
Working on a probably too ambitious project! Wild-west-adventure-RPG-shooter-thing.
User avatar
jimmynewguy
 
Posts: 1137
Joined: Sat Mar 31, 2007 6:27 pm
Score: 89 Give a positive score

Re: Asterix and Obelix - Somethink wrong with moonwalking?

Postby Camper1995 » Sat Apr 04, 2009 9:53 pm

ok no problem :D I do it and it works very good.
Here is game. You can select between Asterix and Obelix and with Obelix you can smash blocks and so by
pressing SPACE. Only when you are in air, you can press SPACE More comming soon... :D

Use key DOWN to crouch.

Asterix and Obelix - Lost in time.zip
(858.02 KiB) Downloaded 114 times


p.s.: How can I make better smoke?
Say hello to my little friend.
User avatar
Camper1995
 
Posts: 707
Joined: Tue Dec 30, 2008 7:20 pm
Location: Lost in the past.
Score: 44 Give a positive score

Re: Asterix and Obelix - Somethink wrong with moonwalking?

Postby skydereign » Sun Apr 05, 2009 1:19 am

You might want to make the smoke less rigid, but I think it looks alright if you put in this code.
Smoke->DrawActor->Script Editor
Code: Select all
transp+=.05;
if (transp>=.80)
{
    DestroyActor("Event Actor");
}


Another thing, do you know there is still moonwalking? Or a version of it. If you jump move left, then right, then left again, or similar, you will moonwalk. To fix this it is the same code implemented in draw, or even easier upon hitting the ground. If you are using a direction variable then you set it appropriately, if key right is pressed and key left is pressed.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Asterix and Obelix - Somethink wrong with moonwalking?

Postby Camper1995 » Sun Apr 05, 2009 7:50 am

yea yea, so i must to write this: Draw actor...
Code: Select all
char *key=GetKeyState();
if(key[KEY_LEFT]==1&&key[KEY_RIGHT]==1)
{
  What to do?
}


Thanks for the somke effect :)
Say hello to my little friend.
User avatar
Camper1995
 
Posts: 707
Joined: Tue Dec 30, 2008 7:20 pm
Location: Lost in the past.
Score: 44 Give a positive score

Re: Asterix and Obelix - Somethink wrong with moonwalking?

Postby skydereign » Sun Apr 05, 2009 8:06 am

Hmm... You did the antimoonwalking through keydown events. So you don't have a central draw script. Essentially, you would need to be able to determine that you are in the air, and that you are moving. And add a collision event that would set you to walk, if it is appropriate. I could rework your game so that it is fixed if you want. It is really more variable work, you have the ability to determine if Asterix is in the air with canjump, and if moving is appropriate, key[KEY_(Direction)]. So when you are in air, and depending on direction, you would set animation to jump. But you need also to tell is after the jumping animation.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Asterix and Obelix - Somethink wrong with moonwalking?

Postby Camper1995 » Sun Apr 05, 2009 11:55 am

Yeah, but I was trying to put all codes in draw actor, but then my character jump infinity times. So when I press key up 3x, he jump 3x.
:?
Say hello to my little friend.
User avatar
Camper1995
 
Posts: 707
Joined: Tue Dec 30, 2008 7:20 pm
Location: Lost in the past.
Score: 44 Give a positive score

Re: Asterix and Obelix - Somethink wrong with moonwalking?

Postby Camper1995 » Sun Apr 05, 2009 12:06 pm

Yeah man! At first time in my life I do "antimoonwalking" :) :)

So, here are results: Press SPACE BAR to do somethink special.
I know, I must do on that "super" Asterix on keydown event. 8)

A and O - Antimoonwalking.zip
(1.62 MiB) Downloaded 112 times


Enjoy :D
Say hello to my little friend.
User avatar
Camper1995
 
Posts: 707
Joined: Tue Dec 30, 2008 7:20 pm
Location: Lost in the past.
Score: 44 Give a positive score

Next

Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron