Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
BaZko
20
Years of Service
User Offline
Joined: 24th Sep 2004
Location:
Posted: 28th Dec 2004 07:02
I made a simple turnbased combat system,but how do I make it so that if a unit collides with another unit it goes into the turn based combat system,and when it wins it goes back to where it was?

Team Dark Knights:
http://www.teamdarkknights.com
Frozen Flame
20
Years of Service
User Offline
Joined: 22nd Jul 2004
Location:
Posted: 28th Dec 2004 07:25
look up the comand "IF THEN" and "GoSub"
example of what ur asking for would be:
(this isnt tested and is only and example)

IF player_enemy_colide THEN GoSub battle

Battle:
'move camera and all that stuff and ur battle sequence

IF player_win THEN return
IF enemy_win THEN goto gameover
BaZko
20
Years of Service
User Offline
Joined: 24th Sep 2004
Location:
Posted: 28th Dec 2004 07:39 Edited at: 28th Dec 2004 07:40
Sorry F50Z3N FLAM3 you didnt understand my question.I need how to make him go to a different matrix,where he will battle the guy he collided with,and then come back to the same place.
(I already have the battle system done)

Team Dark Knights:
http://www.teamdarkknights.com
Frozen Flame
20
Years of Service
User Offline
Joined: 22nd Jul 2004
Location:
Posted: 28th Dec 2004 10:23 Edited at: 28th Dec 2004 12:04
build a part of the matrix to be the battle area.. have it be disguised as a un enterable building or somthing from the outside.. and when ever the player goes into battle,
GoSub battle
Battle:
position camera enemy and player all into that spot on the matrix
make the turned base fight right here
if player_wins then return
if enemy_wins then goto death

i dont think you need to go to a diffrent matrix..but if u do ill help you
IBOL
Retired Moderator
21
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 28th Dec 2004 13:18
yeah,
and when you actually GO to the battle,
just store the current camera x,y,z as variables,
and re-position the camera when you get back.
you might also need to store the rotation angle.
bob

Slayer93
20
Years of Service
User Offline
Joined: 5th Aug 2004
Location: I wish I knew
Posted: 29th Dec 2004 02:38
save the position of your character with

this is how i would do it
i don't know if this works i didn't test it out but it should
Jake Blues
20
Years of Service
User Offline
Joined: 19th Jun 2004
Location: United States
Posted: 10th Jan 2005 07:25
You could also load a seperate matrix or make a seperate one and position it far away, then just move your character to the battle matrix.

Don't let life get you down, it will only get better.

Login to post a reply

Server time is: 2025-05-24 17:41:00
Your offset time is: 2025-05-24 17:41:00