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.

DarkBASIC Professional Discussion / problem whit traiectories help me!

Author
Message
super philip
17
Years of Service
User Offline
Joined: 31st Jul 2008
Location: Italy
Posted: 6th Jun 2013 03:35
Quote: "an enemy ship comes towards the player.
I would like to align it with the ship of the player gradually.
the enemy side straight and aligns with my ship gradually.
my ship is moving at 360 degrees.
I tried but I want to point object that aligns not instantly.
I want lines up as they approached.
could you help me[quote]?"
move object 800,0.2 ' enemy
1=ship player
[/quote]
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 6th Jun 2013 13:13
Could you show us just a bit of your progress?...just a couple of lines of "functional" code ,where we should figure out what and where is your problem.

I'm not a grumpy grandpa
super philip
17
Years of Service
User Offline
Joined: 31st Jul 2008
Location: Italy
Posted: 6th Jun 2013 16:47


there is an example.
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 6th Jun 2013 17:36
lol, show code, not a screenshot.

This is my current project, check it out! [href]forum.thegamecreators.com/?m=forum_view&t=204576&b=8[/href]
This is my website, check it out! [href]http:\\www.TeamDefiant.co.uk[/href]
super philip
17
Years of Service
User Offline
Joined: 31st Jul 2008
Location: Italy
Posted: 6th Jun 2013 17:52
[quote] Speed_enemies#=5.0
move_enemies:
for k=0 to 7
move 800+k,Speed_enemies#
gosub traictories_enemies
next k
return
[quote/]
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 6th Jun 2013 20:07
Quote: "lol, show code, not a screenshot"



Do you mean something like this?...



Do you want the rocket goes straight or making a bend coming to you...like a grenade?

I'm not a grumpy grandpa
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 6th Jun 2013 21:15
Quote: "gosub traictories_enemies"

The contents of this would have been more helpful, since this is what you're having trouble with. lol

This is my current project, check it out! [href]forum.thegamecreators.com/?m=forum_view&t=204576&b=8[/href]
This is my website, check it out! [href]http:\\www.TeamDefiant.co.uk[/href]
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 6th Jun 2013 22:58
Quote: "The contents of this would have been more helpful, since this is what you're having trouble with"



come ha detto il nostro amico Mobiius, il contenuto dell'etichetta "traictories_enemies" è quello che ci piace vedere, di valutare in cui il codice può essere fallendo. Stiamo solo scherzando, e in nessun modo la nostra intenzione di prendere in giro il tuo commento.

Quote: "As said our friend Mobiius, the label content is what we like to see, to assess where your code may be failing. We're just kidding, and in no way our intention to make fun of your comments."


We are trying to help you

I'm not a grumpy grandpa
super philip
17
Years of Service
User Offline
Joined: 31st Jul 2008
Location: Italy
Posted: 6th Jun 2013 23:40
thanks so much for the code approaches the solution.

I can not use it because the ship's player moves 360 degrees.

you used yrotate object, not good for the movement of the ship.

Why need a system that works with all three axes.

Login to post a reply

Server time is: 2026-07-07 07:36:25
Your offset time is: 2026-07-07 07:36:25