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.

Newcomers DBPro Corner / Fighting, please help!

Author
Message
Zelda Link freak the legend
20
Years of Service
User Offline
Joined: 21st Oct 2003
Location: The Land of Hyrule
Posted: 30th Oct 2003 14:27
I'm making a 2d fighting game but with 3d charecters and levels. How do you stop the fighters from moving off the screen?
Zelda Link freak the legend
20
Years of Service
User Offline
Joined: 21st Oct 2003
Location: The Land of Hyrule
Posted: 30th Oct 2003 14:36
Why isn't anyone replying?!
Zelda Link freak the legend
20
Years of Service
User Offline
Joined: 21st Oct 2003
Location: The Land of Hyrule
Posted: 30th Oct 2003 15:01
Sombody please reply! PLLLLLEASE!
denki
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 30th Oct 2003 16:08 Edited at: 30th Oct 2003 16:09
...
..

..


...

.

*Faints*

ok, so i was a newbie once, but there are help files THIS basic!

Currently working with...

adr
21
Years of Service
User Offline
Joined: 21st May 2003
Location: Job Centre
Posted: 30th Oct 2003 16:11 Edited at: 30th Oct 2003 16:14
Not everyone around here has the luxury of having nothing to do all day. People have jobs, schools, colleges and universities to go to. If somone doesn't reply in 9 minutes, then just wait longer.

*cough*... anyway. your question.

Limit your player's movements by checking where they are on the playing field. Let's suppose you have a player's x position in a variable called posx#.



the player's x position will only be increased if the right cursor key is pressed and their position is within your boundry.

Enjoy...

Can I ask you a Question?
What is it?
It's an interrogative form of sentence, used to test knowledge. But that's not important right now.
denki
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 30th Oct 2003 16:12 Edited at: 30th Oct 2003 16:13
hmm... maybe my first reply was a bit mean, but look at all the posts in such a small amount of time, you could have solved this by now if you thought about it.

all you have to do, is something like - find out the charcaters x position, and if it is equal the screen width minus 5 (or something) you don't let them move further in that direction

Edit - posted during adr's more helpful reply.

Currently working with...

X_MEN
21
Years of Service
User Offline
Joined: 14th Sep 2003
Location:
Posted: 30th Oct 2003 20:40
if sprite x(sprite number)>bitmap width() then ?

You cant do it if you try
bytemonkey
20
Years of Service
User Offline
Joined: 30th Oct 2003
Location:
Posted: 31st Oct 2003 01:14
u can try to reposition ur camera that she have more distance if the characters have more distances and ur 3d level should have collision walls on their limits
soapyfish
20
Years of Service
User Offline
Joined: 24th Oct 2003
Location: Yorkshire, England
Posted: 2nd Nov 2003 17:39
if sprite 1,x<=640 sprite 1,x=640

"I SEE" said the blind man
John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 2nd Nov 2003 19:45
Quote: "2d fighting game but with 3d charecters and levels"


Lets hope your using sprites. Anyhow, if your running 640,480

If spritex(num)>640 then Sprite num,640,y,num
If spritex(num)<0 then Sprite num,0,y,num

Should help

RPGamer

Current Project: Eternal Destiny WEBSITE SOON!
"Thats not a bug! Its a feature!" - _ESC
Zelda Link freak the legend
20
Years of Service
User Offline
Joined: 21st Oct 2003
Location: The Land of Hyrule
Posted: 8th Nov 2003 15:25
Quote: "Let's hope your using sprites"

No I'm not using sprites I'm using 3d models viewed at a side angle.

Login to post a reply

Server time is: 2024-09-21 07:53:55
Your offset time is: 2024-09-21 07:53:55