Project X Forums



It is currently Fri Apr 19, 2024 10:48 pm

All times are UTC




Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: idea: Fuel recharging zones
PostPosted: Mon Aug 26, 2013 2:11 am 
Offline

Joined: Wed Jul 31, 2013 4:03 pm
Posts: 35
Location: Ukraine
Thanks, raffie. Very good image, I like it. I've trimmed it, so it takes less memory, and attached it to the station object.

I've changed the shape of refueling zone to circle. I think that's better - the image is at the center and radius of the refueling zone is adjustable in editor. I want to attach an special effect to it, something similar to magnet field but I think magnet's field won't look suitable here. Then players could see how far station refuels.

Please, post any suggestions and ideas to improve it.

Here is another test game and lib.


Top
 Profile  
Reply with quote  
 Post subject: Re: idea: Fuel recharging zones
PostPosted: Mon Aug 26, 2013 7:35 am 
Offline

Joined: Mon Jul 30, 2012 9:45 am
Posts: 194
Nice ;)

Seeing that ingame for the first time, it's huge :D i'll make a smaller version so that it isnt bigger than then helicopter hehe xD

I think it would be nice to have some animation when the heli or w/e is actually tanking fuel, my first idea is the meter numbers rolling (if still visible after i make the sprite smaller).

I do like the idea of having a special effect akin to the magnetic field, but it should definitely be different enough so that it can't get confused with magnetic field.

_________________
http://twitch.tv/wormsdotam | http://worms.am/hl | http://worms.am/zombieshopper | http://worms.am/golf | http://worms.am/holywar


Top
 Profile  
Reply with quote  
 Post subject: Re: idea: Fuel recharging zones
PostPosted: Mon Aug 26, 2013 3:07 pm 
Offline

Joined: Wed Jul 31, 2013 4:03 pm
Posts: 35
Location: Ukraine
Yes, perhaps it's too big. I'll try to implement this number rolling idea, that's pretty good idea, I think. But I need an image of every digit from 0 to 9. Or I can simply place the GUIText object at the meter (like the health bar above worms), but I think it the first way is better.
But firstly, we need to decide what size would be perfect. Won't digits be too small? At the moment they're fitting nice - they are the same size as default font in game. So what do you think?


Top
 Profile  
Reply with quote  
 Post subject: Re: idea: Fuel recharging zones
PostPosted: Mon Aug 26, 2013 8:03 pm 
Offline

Joined: Mon Jul 30, 2012 9:45 am
Posts: 194
Heres a better sized version:

Attachment:
icon-fuel-34.png
icon-fuel-34.png [ 3.08 KiB | Viewed 25281 times ]


I'll make an animated version, the numbers dont have to be visible, i'll just motion blur them ;)

_________________
http://twitch.tv/wormsdotam | http://worms.am/hl | http://worms.am/zombieshopper | http://worms.am/golf | http://worms.am/holywar


Top
 Profile  
Reply with quote  
 Post subject: Re: idea: Fuel recharging zones
PostPosted: Mon Aug 26, 2013 11:23 pm 
Offline

Joined: Wed Jul 31, 2013 4:03 pm
Posts: 35
Location: Ukraine
aah. So you don't wan't station to show any fuel values like how much fuel left or something?..


Top
 Profile  
Reply with quote  
 Post subject: Re: idea: Fuel recharging zones
PostPosted: Tue Aug 27, 2013 9:33 am 
Offline

Joined: Mon Jul 30, 2012 9:45 am
Posts: 194
I hadn't even thought of having the fuel run out. ;)

Can you make the fuel limited and then have it refilled after for example, 2 turns?
If so it would be nice to have the display show the fuel left, is that still possible with the smaller sprite? I can post a version without the numbers on the display.

_________________
http://twitch.tv/wormsdotam | http://worms.am/hl | http://worms.am/zombieshopper | http://worms.am/golf | http://worms.am/holywar


Top
 Profile  
Reply with quote  
 Post subject: Re: idea: Fuel recharging zones
PostPosted: Tue Aug 27, 2013 12:05 pm 
Offline

Joined: Wed Jul 31, 2013 4:03 pm
Posts: 35
Location: Ukraine
-raffie- wrote:
Can you make the fuel limited and then have it refilled after for example, 2 turns?
I think I can, it's not so hard.
-raffie- wrote:
If so it would be nice to have the display show the fuel left, is that still possible with the smaller sprite? I can post a version without the numbers on the display.
I'm not quite sure about how it would be implemented but I have an ideas.
Suppose, we have 652 fuel units left. Just factoring out every digit-position with looping division, script will separate number 652 into three: 6, 5 and 2 which will be used in the selection of the appropriate .png... something like:
if (_ones == 1) PutAtOnesPlace(_1.png); else
if (_ones == 2) PutAtOnesPlace(_2.png); else
if ...
...
if (_tens == 1) PutAtTensPlace(_1.png); else
....
...
and so on.
I'll write it soon. I need a couple of days. Some work came like a bolt from the blue: preparing for autumn term in the uni, buying different things... oh lord! :O 3 days left! D: How did 2 months of relaxation fly by that fast?! Oh... :(


Top
 Profile  
Reply with quote  
 Post subject: Re: idea: Fuel recharging zones
PostPosted: Sat Aug 31, 2013 7:21 pm 
Offline
User avatar

Joined: Sun Apr 08, 2012 1:09 pm
Posts: 425
Location: Ukraine, Kyiv
well jet fuel has devider of 65536. So 1 fuel point is 65536. 10 fuel points is 655360 and so on. Based on that we can make a scale of how many fuel left/inside etc. And to display text, we can use draw bitmap functions. Just set positions based on objets, not display. Or u can use jet fuel fill as a status bar. Just like i used in Worms RPG lib. check it here

_________________
Things to impress.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: No registered users and 88 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Skin by Lucas Kane