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.

The 20 Line Challenge / [DBPRO]Tank trails

Author
Message
chafari
Valued Member
17
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 24th Dec 2009 14:16 Edited at: 25th Dec 2009 23:07
Long time this thread has been sleeping.I made a poor tank with no media long time ago...now it has no textures and no firing to fit in 20 lines code.

I hope you like it

Merry Christams you all !!

sorry....the code is in post down below

learning every day
chafari
Valued Member
17
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 25th Dec 2009 12:05
Sorry...I don´t know how to edit.

[img] [/img]




learning every day
Veron
17
Years of Service
User Offline
Joined: 22nd Nov 2006
Location:
Posted: 27th Dec 2009 07:10
You don't know how to edit but you edited the post above? This made my day.

Mew151
15
Years of Service
User Offline
Joined: 1st Jun 2008
Location: Glitch city
Posted: 28th Dec 2009 06:24
that looks pretty cool.

[href=http://pikasite.mew151.net/][/href
chafari
Valued Member
17
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 28th Dec 2009 11:45
Hallo friends... I,m glad you like this litle code.

@Veron. Ha ha...I felt myself stupid... I couldn´t find the way to re-edit my post in order to mend the mess I did trying to send an image and the code...finally I found this "Edit post".

Here we have the an-compressed code with some english coments to help somehow other friends.




cheers.

learning every day
jeffhuys
17
Years of Service
User Offline
Joined: 24th May 2006
Location: No cheesy line here.
Posted: 3rd Jan 2010 00:52 Edited at: 3rd Jan 2010 00:59
Very cool!


You're the 'th to view this signature!

Attachments

Login to view attachments
chafari
Valued Member
17
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 4th Jan 2010 11:49
Ha ha.....It looks great !!... I suppose you have been flying with the whole tank

cheers

learning every day
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 4th Jan 2010 21:33
Quote: "ou don't know how to edit but you edited the post above? This made my day"

But look at the time stamps, the edit came way after his second post.


You should increase the transparency a little more I think on the trails. And the trails should fade out after so long, otherwise the system would bog down pretty quickly with so many objects.


> SELECT * FROM users WHERE clue > 0
> 0 rows returned
chafari
Valued Member
17
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 5th Jan 2010 11:54 Edited at: 5th Jan 2010 23:08
@Phaelax.

Yeahhh, you are right !! about transparency and fading trails, but it needs more code with the command " IF ", and if you put several "IF " in the same line, some commands stop working correctly, so there wasn´t room for much more code.

If it where a 50 lines challenge, I shouldn´t get rid of firing, and the tank model should be nicer as well.




The trail is created with one by one piece of trail, and when it is biger than 100, the first piece of trail is deleted, so there are not ever 101 pieces of trail on the ground.Even if we fade some of them and finally delete this trails, the engine of dark basic is working even more than if we delete them.

We could reduce the quantity of pieces that a going to form the trail in order not to slow down the system.




learning every day

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-04-19 05:02:37
Your offset time is: 2024-04-19 05:02:37