CooPac

Announce your Work In Process and finalized projects here.
Post Reply
peter
Active Member
Posts: 123
Joined: Mon Oct 22, 2007 2:31 pm

CooPac

Post by peter »

Hi,

my second game comes to you.
It is called CoolPac.
Please read CoolPac.txt.
Attachments
CoolPac.rar
(1.17 MiB) Downloaded 565 times
Viltzu
Guru
Posts: 1132
Joined: Sun Aug 26, 2007 5:45 pm
Location: Alavieska
Contact:

Re: CooPac

Post by Viltzu »

This is... Awesome! I think this game is best from you!
Do you have any big project ?
You have amazing coding skills! =O
More games, please =)
peter
Active Member
Posts: 123
Joined: Mon Oct 22, 2007 2:31 pm

Re: CooPac

Post by peter »

Hi Vilsku,

i'm trying some bigger projects.
Nice that you like 'CoolPac'.

Do you know, whence i can get the 'joystick.dll' ?

Peter
tuhoojabotti
Advanced Member
Posts: 485
Joined: Tue Aug 28, 2007 3:53 pm
Location: Suomi, Finland
Contact:

Re: CooPac

Post by tuhoojabotti »

Peter,
This is mostly in finnish, but this is what your looking for, Joystick dll
Imagedev.tuhoojabotti.com — “Programmer (noun): An organism that turns caffeine into code.”
peter
Active Member
Posts: 123
Joined: Mon Oct 22, 2007 2:31 pm

Re: CooPac

Post by peter »

Hi Tuhoojabotti,

thank you !
i am looking whether i can use it.

Peter
Hacker
Newcomer
Posts: 11
Joined: Mon Aug 11, 2008 1:36 am

Re: CooPac

Post by Hacker »

Hello!!

I am Chilean. I speak spanish. mmmm.

I created ten games!!! I am an expert in CoolBasic

But like I have some doubts.

I do not know how to make a character jump in a game can only run

Can you help?

Thank you. Greetings and sorry for writing bad English
cvirus
Newcomer
Posts: 30
Joined: Tue Jul 14, 2009 2:59 pm

Re: CooPac

Post by cvirus »

Awesome! Very cool game. You should make us begginers a nice tuto so we can code like you. Thank you
peter
Active Member
Posts: 123
Joined: Mon Oct 22, 2007 2:31 pm

Re: CooPac

Post by peter »

sorry Chilean,

but i am thinking that i do have no time right now.
is there nobody out of the finnish forum, who may help you ?
it's really not difficult to write a jumping man.
i am writing an assembler project with Masm and
that is not so easy. needing much time.

i beg for pardon....
Peter
User avatar
Jare
Devoted Member
Posts: 876
Joined: Mon Aug 27, 2007 10:18 pm
Location: Pori
Contact:

Re: CooPac

Post by Jare »

To make a character jump, you actually need to play with its Y coordinate. Sorry, but I don't have a suitable and working example code right now - but I can explain it a little.

The following command can be applied to your game:

Code: Select all

PositionObject obj, ObjectX(obj), ObjectY(obj)+jump_force
So PositionObject give's a new position for your object (which is the player character). ObjectX() and ObjectY() tells you the object's current X and Y coordinates. Increasing the Y makes the character go higher. Try to place the command inside an condition block so that it will be processed when a user press CTRL or some else key for jumping. Like this:

Code: Select all

If KeyDown(CbKeyLControl) Then
    PositionObject obj, ObjectX(obj), ObjectY(obj)+jump_force
EndIf
But that one is not a _finished_ solution! I mean.. you need to spend time to adjust and test it before it will look good. And another thing is that you need also gravity in your game. Otherwise the character won't come down after the jump. Ask more about gravity if you need help with it. And ask more about the jumping if this didn't help. Maybe I can write a proper example code with a finished behaviour of a jumping character. (Though I don't have time for that until next week).
Guest

Re: CooPac

Post by Guest »

Thanks for the replies, but I do not translate to much. ja ja ja. Sorry for the bad English writing.

I understand what the jumps and the coordinates, but does not like to use commands ObjectX and ObjectY.

I will continue trying. Thank you.
Post Reply