Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 01:28
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (7th_zorro), 793 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 4
Page 3 of 7 1 2 3 4 5 6 7
Re: Kingdom Hearts Movement Tutorial [Re: Locoweed] #86299
09/06/06 23:19
09/06/06 23:19
Joined: Jul 2004
Posts: 4,206
Innsbruck, Austria
sPlKe Offline
Expert
sPlKe  Offline
Expert

Joined: Jul 2004
Posts: 4,206
Innsbruck, Austria
sweet stuff...
i have to figure out a few things though, but all in all, if this just gets a little better adaptable, to not rely on the implemented code, one can easily use this as base for a 3rd person game of any kind, like action, fighting, jump and run ect...

as said, i have to play around with it a bit. maybe i find a good way to implementy MY camera with this code, sicne im not very good at coding. then i just have to find out how to implement shooting and im ready to go:-p

Re: Kingdom Hearts Movement Tutorial [Re: sPlKe] #86300
09/07/06 00:09
09/07/06 00:09
Joined: Nov 2004
Posts: 862
Australia
DavidLancaster Offline OP
User
DavidLancaster  Offline OP
User

Joined: Nov 2004
Posts: 862
Australia
@nkl - to add the enemy pain effect you will need the enemies to be animated, call handle_animation(1); from the enemie's while loop, then when the sword strikes the enemy change it's animation to pain. For the ladder climbing, you will need to create a new my.movement_mode state, which only moves the player up and down and animates the player with the ladder animation, it will need to be triggered by approaching a ladder. Easy to say in concept, implementing it requires scripting experience.

Re: Kingdom Hearts Movement Tutorial [Re: DavidLancaster] #86301
09/08/06 01:39
09/08/06 01:39
Joined: May 2006
Posts: 16
L
Ludochrist Offline
Newbie
Ludochrist  Offline
Newbie
L

Joined: May 2006
Posts: 16
this is really nice, but i think a chase camera similar to the zelda code would be much more appropriate for a kingdom hearts type game. clicking a mouse for fast combo based combat isnt as intuitive as using a joypad, and also the camera is somthing i should never have to worry about moving while in battle. if you could make a hybrid of this and the zelda code i think it would be a perfect for kindom hearts style gameplay.

Re: Kingdom Hearts Movement Tutorial [Re: Ludochrist] #86302
09/08/06 13:44
09/08/06 13:44
Joined: Nov 2004
Posts: 862
Australia
DavidLancaster Offline OP
User
DavidLancaster  Offline OP
User

Joined: Nov 2004
Posts: 862
Australia
It's pretty easy to set up a simple camera that way. The player moves relative to the camera so you pan the camera as the player moves left and right rather than have the camera controlled by the mouse. This may not be the best code to do the job but it works:

Code:

IF (key_w == 1 && key_s == 0 && key_a == 0 && key_d == 0) { temp.x = camera.pan; }
IF (key_s == 1 && key_w == 0 && key_a == 0 && key_d == 0) { temp.x = camera.pan + 180; }
IF (key_a == 1 && key_s == 0 && key_w == 0 && key_d == 0) { temp.x = camera.pan + 90; camera.pan += 5 * time; }
IF (key_d == 1 && key_s == 0 && key_a == 0 && key_w == 0) { temp.x = camera.pan - 90; camera.pan -= 5 * time; }
IF (key_w == 1 && key_a == 1 && key_d == 0 && key_s == 0) { temp.x = camera.pan + 45; camera.pan += 2.5 * time; }
IF (key_w == 1 && key_d == 1 && key_a == 0 && key_s == 0) { temp.x = camera.pan - 45; camera.pan -= 2.5 * time; }
IF (key_s == 1 && key_a == 1 && key_d == 0 && key_w == 0) { temp.x = camera.pan + 135; camera.pan += 6 * time; }
IF (key_s == 1 && key_d == 1 && key_a == 0 && key_w == 0) { temp.x = camera.pan - 135; camera.pan -= 6 * time; }



Use that concept, introduce some new variables and you can set up a camera like that pretty easily if you have the experience.

Re: Kingdom Hearts Movement Tutorial [Re: DavidLancaster] #86303
09/15/06 22:52
09/15/06 22:52
Joined: May 2006
Posts: 90
England
TigerTao Offline
Junior Member
TigerTao  Offline
Junior Member

Joined: May 2006
Posts: 90
England
Just like to add my thanks to David for this contribution. This has helped me from a few tentative baby steps to more confident strides in using this great little program.

Re: Kingdom Hearts Movement Tutorial [Re: TigerTao] #86304
09/16/06 16:44
09/16/06 16:44
Joined: Sep 2005
Posts: 42
SusanJ Offline
Newbie
SusanJ  Offline
Newbie

Joined: Sep 2005
Posts: 42
can someone please upload this somewhere so i can download it. it looks realy good and im drooling to try it .

thank you.

Re: Kingdom Hearts Movement Tutorial [Re: SusanJ] #86305
09/16/06 18:42
09/16/06 18:42
Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
T
TWO Offline

Serious User
TWO  Offline

Serious User
T

Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
Look at the first page, there are 3 links; this tut is very very cool!

Re: Kingdom Hearts Movement Tutorial [Re: TWO] #86306
09/25/06 19:24
09/25/06 19:24
Joined: Sep 2006
Posts: 292
M
Mythran Offline
Member
Mythran  Offline
Member
M

Joined: Sep 2006
Posts: 292
Did anyone changed the code so that the player may kill monters and die?
If so, can you give me that piece of code?
Thanks for this great code!
&
Thanks in advance.


Last edited by Mythran; 09/25/06 19:43.
Re: Kingdom Hearts Movement Tutorial [Re: DavidLancaster] #86307
10/14/06 14:49
10/14/06 14:49
Joined: Jun 2006
Posts: 2,640
Earth
Germanunkol Offline
Expert
Germanunkol  Offline
Expert

Joined: Jun 2006
Posts: 2,640
Earth
This may be a temporary problem but... i can't download it...:(... looks awesome, I really wanna try it, but I can't download...
?
Thx for giving this to the community!!
Micha


Take that back. I got it from the AUM recources.. thanks!

Last edited by Germanunkol; 10/14/06 14:58.

~"I never let school interfere with my education"~
-Mark Twain
Re: Kingdom Hearts Movement Tutorial [Re: Germanunkol] #86308
10/17/06 03:35
10/17/06 03:35
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline
Serious User
DLively  Offline
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
Well... This is the worst code ever... I have never seen anything... - WOW! I Cant say that with a straight face... wow! I love this tut sooooooooooooooooooooooooooooooooo much. You have helped me out soooo much. thanks for the great contribution. PS. Ill be posting up some pics soon of my altered version... lets just say my players sword is a bit... organic... LOL


A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Page 3 of 7 1 2 3 4 5 6 7

Moderated by  adoado, checkbutton, mk_1, Perro 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1