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 / I need help please

Author
Message
BigApe
16
Years of Service
User Offline
Joined: 13th Dec 2007
Location: Greece
Posted: 1st Jan 2008 14:02
hi guys how are you???
first:sorry on my bad english
please I have problem,I hope to nothing discordant
look to my code .
in my code you can to edit it for press up or down no problem but if i press left and right :-
* rotate object about same.
I hope the code and i want it . it is "rotate object and moving"
look the images:-
first:My code can creator:-

secondly:I want this code and I cannot creator:-
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 1st Jan 2008 14:38
A very well presented problem

What are you using to detect keypresses? INKEY$() is quite limited, but using SCANCODE() you can detect multiple keypresses.
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 1st Jan 2008 23:33
I think you actually meant KEYSTATE(). SCANCODE() can only detect one keypress at a time.

BigApe
16
Years of Service
User Offline
Joined: 13th Dec 2007
Location: Greece
Posted: 2nd Jan 2008 03:15
sorry i forget the code
ok no problem

this is example for the first illustration:-
Quote: ""

and can you help me on loop and play object if you test the code you will see object moving and not stop
pcRaider
17
Years of Service
User Offline
Joined: 30th May 2007
Location:
Posted: 2nd Jan 2008 05:43
Try this
Binary Coder
17
Years of Service
User Offline
Joined: 26th Feb 2007
Location: Queensland, Australia
Posted: 2nd Jan 2008 12:05
Hmmm, But pcRaider, he was using 3D objects. You are using sprites.

BigApe
16
Years of Service
User Offline
Joined: 13th Dec 2007
Location: Greece
Posted: 2nd Jan 2008 13:34 Edited at: 2nd Jan 2008 14:02
nononono thank you i don't want on images for 3d ...
BigApe
16
Years of Service
User Offline
Joined: 13th Dec 2007
Location: Greece
Posted: 3rd Jan 2008 06:45
where is the code (3d) please come writing it

BigApeSoft
www.AltraGames.jeeran.com
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 3rd Jan 2008 19:27
Well, you could do something like:



This code assumes your camera isn't top-down. Else, I'd advice to use the code:



(I didn't test it, but you should get the point, as it's actually more simple than the code you got right now...)

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
Jimpo
19
Years of Service
User Offline
Joined: 9th Apr 2005
Location:
Posted: 3rd Jan 2008 19:56
Is this what you are looking for? I tried to copy your second picture.



BigApe
16
Years of Service
User Offline
Joined: 13th Dec 2007
Location: Greece
Posted: 3rd Jan 2008 20:02
Quote: "Is this what you are looking for? I tried to copy your second picture."

thank you but sorry.. I can create this code look to my images and then reading to my asking.. your code 100% but can you add the rotate and move if press left key ang right key

BigApeSoft
www.AltraGames.jeeran.com
BigApe
16
Years of Service
User Offline
Joined: 13th Dec 2007
Location: Greece
Posted: 4th Jan 2008 18:20 Edited at: 4th Jan 2008 18:21
sven b but your code rotate is one trend I want to trend all of rotate example game gex and hulk and Grand Theft Auto.

sorry on my bad english. and sorry on my much questions
I swear I need more

BigApeSoft
www.AltraGames.jeeran.com
BigApe
16
Years of Service
User Offline
Joined: 13th Dec 2007
Location: Greece
Posted: 4th Jan 2008 18:26
http://www.youtube.com/watch?v=utSUzPx68iY
http://www.youtube.com/watch?v=9vdG5YvOXiM
http://www.youtube.com/watch?v=joeEKWOszPk



BigApeSoft
www.AltraGames.jeeran.com
Eevil Weevil
17
Years of Service
User Offline
Joined: 1st Aug 2007
Location: Wherever you are, I wil follow
Posted: 6th Jan 2008 10:16
First of all, don't triple post (post three times all right next to each other )
Secondly, ah. You mean full game-like 3D rotation. That's a little hard. To figure it out, just get a piece of paper and a pen, draw your figure, the keys and try to work it out. Then think how you could put it into code.

Impossible? Anything is impossible. 48'6F'77'20'64'61'72'65'20'79'6F'75'20'77'6F'72'6B'20'6F'75'74'20'6D'79'20'73'69'67'21

BigApe
16
Years of Service
User Offline
Joined: 13th Dec 2007
Location: Greece
Posted: 6th Jan 2008 13:57
Quote: "First of all, don't triple post (post three times all right next to each other )
Secondly, ah. You mean full game-like 3D rotation. That's a little hard. To figure it out, just get a piece of paper and a pen, draw your figure, the keys and try to work it out. Then think how you could put it into code."

first I dont doing triple on posts
1- this post 2- about loop and play object 3- about mouse
and then now,what can I do??

BigApeSoft
www.AltraGames.jeeran.com
pcRaider
17
Years of Service
User Offline
Joined: 30th May 2007
Location:
Posted: 6th Jan 2008 15:10
Exercise 1
You make front and a backward moving program code.
And do the post here.
BigApe
16
Years of Service
User Offline
Joined: 13th Dec 2007
Location: Greece
Posted: 6th Jan 2008 15:34
ok can you gave me example

BigApeSoft
www.AltraGames.jeeran.com
pcRaider
17
Years of Service
User Offline
Joined: 30th May 2007
Location:
Posted: 6th Jan 2008 15:50
I understood it
I lower a level.

Exercise 1
You calculate, and make a program to display a result.
1+2+3+.....+10

You write a code,
And do the post here.
Pillarofire
20
Years of Service
User Offline
Joined: 31st Dec 2003
Location: Good Question, <looks around.>
Posted: 7th Jan 2008 03:16
Hi BigApe, I'm not going to say that this is exactly what you are wanting, because I'm still trying to figure that one out. But anyway, here is what I would have done.

Note: I used a stock object to demonstrate the idea, so it is possible that I have the angles inverted.

BigApe
16
Years of Service
User Offline
Joined: 13th Dec 2007
Location: Greece
Posted: 7th Jan 2008 23:42
thank you Pillarofire that's what I'm looking for

BigApeSoft
www.AltraGames.jeeran.com
Pillarofire
20
Years of Service
User Offline
Joined: 31st Dec 2003
Location: Good Question, <looks around.>
Posted: 8th Jan 2008 04:15
Glad to be a help.

Login to post a reply

Server time is: 2024-09-27 10:37:17
Your offset time is: 2024-09-27 10:37:17