Page 1 of 1

CooPac

Posted: Fri Aug 01, 2008 11:59 am
by peter
Hi,

my second game comes to you.
It is called CoolPac.
Please read CoolPac.txt.

Re: CooPac

Posted: Tue Sep 30, 2008 5:38 pm
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 =)

Re: CooPac

Posted: Tue Sep 30, 2008 6:19 pm
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

Re: CooPac

Posted: Tue Sep 30, 2008 7:40 pm
by tuhoojabotti
Peter,
This is mostly in finnish, but this is what your looking for, Joystick dll

Re: CooPac

Posted: Wed Oct 01, 2008 1:07 am
by peter
Hi Tuhoojabotti,

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

Peter

Re: CooPac

Posted: Thu Jul 16, 2009 2:41 am
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

Re: CooPac

Posted: Thu Jul 16, 2009 3:29 pm
by cvirus
Awesome! Very cool game. You should make us begginers a nice tuto so we can code like you. Thank you

Re: CooPac

Posted: Thu Jul 16, 2009 7:34 pm
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

Re: CooPac

Posted: Fri Jul 17, 2009 12:27 am
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).

Re: CooPac

Posted: Sun Jul 19, 2009 2:16 am
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.