Detect between rooms and many questions for platformer game

Started by Mehrdad, Thu 22/04/2010 15:55:29

Previous topic - Next topic

Mehrdad

This topic is questions for solve  problems AGS platform games :
OK.
discussion for a platform game with AGS:
for a platform multi room(no scroller).how we can detect between frames.for instance when player do near to end of screen... and will be jump.and now player appear to next room with CONTINUE JUMP pass.
in 1213 games series, you can not  jump when player is near end of screen(left or right). can't  you believe? try 1213 games from Yahtzee:

http://www.adventuregamestudio.co.uk/Newsite/Games.aspx/Detail/664/1213_Episode_1

maybe is a bug in this game(AFAIK)

but  instead,gravity structures is very nice.

Question 1: how we can detect player between frames?(read up).is it possible?(I dont want scrolling)
Question 2:how we can make gravity that player dead from high plat falling to floor ?
Question 3:grab ledge.and climb up!!!!

I am beginner to script and programming.but powerfull to 2D animation and make sprites(its my job:Director animation & main animator(2d only))

sorry for bad english
I have many questions again.but step by step.

thanks
MEHRDAD


My official site: http://www.pershaland.com/

abstauber

Hi there,

first of all: if you have no idea how scripting works, starting with a platformer in AdventureGameStudio is not an easy task.
I'm pretty sure, you've already taken a look at Calin's marvelous opensource platformer.
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=39261.0 

Question 1: Simply save the the players y-position and apply it in the next room. The only problem is that you have to make sure that the player can actually jump there. So if there's a wall in the next room, you should block the jump in the current room too (like drawing the wall there as well)

Question 2: Look at Calin's work to see how gravity works. If scrolling is a problem, simply reduce the roomsize to 320x200 ;)

As for Question 3: You'd have to check if there's a solid region at the level of the player's head. If that region is found, you can start the "grab" and stop the player from falling. It's bit like Calin did the walljumps.

btw. just out of curiousity, have anying of your animation online?


Mehrdad

Quote from: abstauber on Thu 22/04/2010 18:23:11
Hi there,

first of all: if you have no idea how scripting works, starting with a platformer in AdventureGameStudio is not an easy task.
I'm pretty sure, you've already taken a look at Calin's marvelous opensource platformer.
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=39261.0 
unfortunately I can not downoad this file.it is filter in my country !!!(Iran).If is file open source,can you a mirror link?I need seriously to this open source.(mediafire or rapidshare).sorry for your time.

Quote from: abstauber on Thu 22/04/2010 18:23:11
Question 1: Simply save the the players y-position and apply it in the next room. The only problem is that you have to make sure that the player can actually jump there. So if there's a wall in the next room, you should block the jump in the current room too (like drawing the wall there as well)
Thanks.can you write a simple code?
Quote from: abstauber on Thu 22/04/2010 18:23:11
Question 2: Look at Calin's work to see how gravity works. If scrolling is a problem, simply reduce the roomsize to 320x200 ;)
Mirror link please(read above).can not download open source!!!
Quote from: abstauber on Thu 22/04/2010 18:23:11
As for Question 3: You'd have to check if there's a solid region at the level of the player's head. If that region is found, you can start the "grab" and stop the player from falling. It's bit like Calin did the walljumps.
Ok.thanks.for a another alternative can i use coordinate x,y for grab ledge?

Quote from: abstauber on Thu 22/04/2010 18:23:11
btw. just out of curiousity, have anying of your animation online?

OH.yes of course.but my website is under structure(pershaland.com).I'm very busy and i'm full time.if you want a my short  flash animation,I can send to your email. ;). and for see all my animation (no flash).can i send for your screenshots.or maybe a preview. ;)

My official site: http://www.pershaland.com/

Khris

Mehrdad, you won't get far by piecing together code somebody's posting here.
Coding a platformer with grabbing and similar "special features" is quite a challenge already for an experienced scripter.

I'm sorry but you don't seem to have a good grasp of basic programming, so I strongly recommend not to even try this until you have a better idea about how complex it's going to be.
Either work together with someone (i.e. they code, you draw) or switch to another engine.

Just to give you a small taste, even simple jumping requires semi-advanced mathematics, advancing the game at a different framerate each loop and flawless collision detection. It involves structs, vectors and a well thought-out technical level design.

abstauber

Nontheless, I can add a mirror - you said you can access mediafire?

If you have access to mediafire, you could also upload some of your animations ;)

Anyway, except for storing the y-pos in a room change and grabbing on ledges, Calins Platformer does everything you need to get started.

On seconds thoughts - if you already know, how to use flash, you could also use it to make a platformer as well. That way you wouldn't have to downgrade your vectors to low-res pixels in AGS.

Mehrdad

Quote from: abstauber on Fri 23/04/2010 08:15:53
Nontheless, I can add a mirror - you said you can access mediafire?

yes.please upload open source platform game for me.

Quote from: abstauber on Fri 23/04/2010 08:15:53

If you have access to mediafire, you could also upload some of your animations ;)
Yes.of course.this is a very short flash animation from me.I was made in 1 hour  time.it was very simple for a learning physics multimedia CD book.(little worm into the animation to be continued into the menues and interfaces multimedia CD.i can upload all worm animations if you want).
I make huge animations with other softwares.in my opinion Flash is very poor for make animation.for instance it dont have a easy camera for control layers.and more...

it is a very very simple my work:(I was made in 1 hour)
http://www.mediafire.com/?jm2ojnz2wmz

continue worm (into program interface):I was make 7 min for per anim
http://www.mediafire.com/?uyyyzigjmtl

or another :(make 1.30 hour)
http://www.mediafire.com/?5mqgkoxnojd

note:you need flash player 7 or higher for see

Quote from: abstauber on Fri 23/04/2010 08:15:53

On seconds thoughts - if you already know, how to use flash, you could also use it to make a platformer as well. That way you wouldn't have to downgrade your vectors to low-res pixels in AGS.

I'm already for make 2D animation.but not programming Actionscript 3 or 2.I just have learning this language to  my free times.I'm very busy .i said before up.
I choose AGS for make game because It is BITMAP scene.yes BITMAP scene.bitmap is lowres in compare with vector.but it make Atmospheric scene.vector is like plastic!!!! and is very artifical.
and also AGS is very nice for me.I remember The DIG-Beneath a steal Sky-Darkseed and....AGS can make my dreams.

please dont forget upload source Platform to mediafire.if you want more sample animation from me.i'm already to upload.(mostly make without flash or vector softwares)

sorry for bad english.



My official site: http://www.pershaland.com/

abstauber

Sweet animations you did there :D

Here's the mirror:

http://rapidshare.com/files/379273766/PlatformerSrc.zip
(I hope rapidshare works as well,  I was too lazy to create a mediafire account)

Btw. Flash is quite capable of processing bitmaps ;)
http://oos.moxiecode.com/

Mehrdad

**** THANKS A LOT abstauber ****  download completed. :D
It will be a great help for me.
sorry for your time.

If you want any help for 2d animation,I'm ready.
cheers
MEHRDAD
My official site: http://www.pershaland.com/

SMF spam blocked by CleanTalk