Hi,
my second game comes to you.
It is called CoolPac.
Please read CoolPac.txt.
CooPac
CooPac
- Attachments
-
- CoolPac.rar
- (1.17 MiB) Downloaded 778 times
Re: CooPac
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 =)
Do you have any big project ?
You have amazing coding skills! =O
More games, please =)
Re: CooPac
Hi Vilsku,
i'm trying some bigger projects.
Nice that you like 'CoolPac'.
Do you know, whence i can get the 'joystick.dll' ?
Peter
i'm trying some bigger projects.
Nice that you like 'CoolPac'.
Do you know, whence i can get the 'joystick.dll' ?
Peter
-
- Advanced Member
- Posts: 485
- Joined: Tue Aug 28, 2007 3:53 pm
- Location: Suomi, Finland
- Contact:
Re: CooPac
Peter,
This is mostly in finnish, but this is what your looking for, Joystick dll
This is mostly in finnish, but this is what your looking for, Joystick dll
Re: CooPac
Hi Tuhoojabotti,
thank you !
i am looking whether i can use it.
Peter
thank you !
i am looking whether i can use it.
Peter
Re: CooPac
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
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
Awesome! Very cool game. You should make us begginers a nice tuto so we can code like you. Thank you
Re: CooPac
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
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
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:
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:
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).
The following command can be applied to your game:
Code: Select all
PositionObject obj, ObjectX(obj), ObjectY(obj)+jump_force
Code: Select all
If KeyDown(CbKeyLControl) Then
PositionObject obj, ObjectX(obj), ObjectY(obj)+jump_force
EndIf
Re: CooPac
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.
I understand what the jumps and the coordinates, but does not like to use commands ObjectX and ObjectY.
I will continue trying. Thank you.