Author Topic: Draw picture from the pictures center instead of top left.  (Read 7074 times)

0 Members and 1 Guest are viewing this topic.

Offline -Major-

  • Veteran
  • *****
  • Posts: 1419
as topic says, why the hell isn't this already fixed? you add headhost effects and debugs it, but won't change some values and how the image should be drawn...

this would unlock a lot of modding possibilities...

DarkCrusade

  • Guest
Re: Draw picture from the pictures center instead of top left.
« Reply #1 on: May 15, 2010, 06:53:09 am »
Elaborate, I don't understand what you want.

headhost effects

Meh.

Offline -Major-

  • Veteran
  • *****
  • Posts: 1419
Re: Draw picture from the pictures center instead of top left.
« Reply #2 on: May 15, 2010, 06:56:47 am »
to draw the image from it's center instead of it's top left.

DarkCrusade

  • Guest
Re: Draw picture from the pictures center instead of top left.
« Reply #3 on: May 15, 2010, 07:02:51 am »
It's no bug, it's just how pictures are drawn in Soldat. I agree, but add the M79 bullet too please

Offline -Major-

  • Veteran
  • *****
  • Posts: 1419
Re: Draw picture from the pictures center instead of top left.
« Reply #4 on: May 15, 2010, 07:33:32 am »
It's no bug, it's just how pictures are drawn in Soldat. I agree, but add the M79 bullet too please
headshot effect was just an example of how eC is wasting time...

it would be for all pictures loaded into soldat ;o

DarkCrusade

  • Guest
Re: Draw picture from the pictures center instead of top left.
« Reply #5 on: May 15, 2010, 07:39:08 am »
Change your description then. It doesn't matter from "where it is drawn" but where is the center. That means where it gets turned around

Offline Bistoufly

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 782
Re: Draw picture from the pictures center instead of top left.
« Reply #6 on: May 15, 2010, 08:22:25 am »
to draw the image from it's center instead of it's top left.

+1 please consider doing this.
It would help a lot for mod making.

Offline Dusty

  • Veteran
  • *****
  • Posts: 1015
Re: Draw picture from the pictures center instead of top left.
« Reply #7 on: May 15, 2010, 08:43:21 am »
Change your description then. It doesn't matter from "where it is drawn" but where is the center. That means where it gets turned around

You're probably the only person here who doesn't understand his point.

Offline mar77a

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1295
  • mad
    • random stuffs
Re: Draw picture from the pictures center instead of top left.
« Reply #8 on: May 15, 2010, 08:54:12 am »
Sprite {
 x,y,w,h;
 Draw(...){
   screen.draw( x + w/2, y + h/2, surface,...);
 }
};

DarkCrusade

  • Guest
Re: Draw picture from the pictures center instead of top left.
« Reply #9 on: May 15, 2010, 08:59:43 am »
Dusty, could you be so kind and explain me what I don't understand then? Thanks!

Offline Dusty

  • Veteran
  • *****
  • Posts: 1015
Re: Draw picture from the pictures center instead of top left.
« Reply #10 on: May 15, 2010, 09:04:03 am »
Elaborate, I don't understand what you want.

Offline biohazard

  • Camper
  • ***
  • Posts: 337
  • B4bY NighT
    • B4bY NighT
Re: Draw picture from the pictures center instead of top left.
« Reply #11 on: May 15, 2010, 09:07:54 am »
How to determined the center on non simmetrical images? I Think its better how it is.

Offline -Major-

  • Veteran
  • *****
  • Posts: 1419
Re: Draw picture from the pictures center instead of top left.
« Reply #12 on: May 15, 2010, 09:55:34 am »
How to determined the center on non simmetrical images? I Think its better how it is.
all images are squares... if you're talking about numbers that can't be divided by 2, then you just add +1 to the width and height (or minus one)

Offline freestyler

  • Soldat Beta Team
  • Camper
  • ******
  • Posts: 326
Re: Draw picture from the pictures center instead of top left.
« Reply #13 on: May 15, 2010, 10:15:55 am »
F12, but not for all graphics, since that would ruin all interfaces ever made. Would be nice for crosshairs and bullets.

Offline biohazard

  • Camper
  • ***
  • Posts: 337
  • B4bY NighT
    • B4bY NighT
Re: Draw picture from the pictures center instead of top left.
« Reply #14 on: May 15, 2010, 10:24:27 am »
idk if its better for cursor, ppl are used to calculate the bullet arc by how it is already. Btw in my POV, would be better to use directdraw, instead of sprite, to render the cursor... Would prevent those imba cursor with a giant vertical line on it.

Offline Centurion

  • Flagrunner
  • ****
  • Posts: 699
Re: Draw picture from the pictures center instead of top left.
« Reply #15 on: May 15, 2010, 11:00:15 am »
headshot effect was just an example of how eC is wasting time...

You seem to mock eC's work very often lately. Maybe you want to start developing next soldat releases by yourself?

It'd fail even harder than it already does.

Offline -Major-

  • Veteran
  • *****
  • Posts: 1419
Re: Draw picture from the pictures center instead of top left.
« Reply #16 on: May 15, 2010, 11:10:58 am »
idk if its better for cursor, ppl are used to calculate the bullet arc by how it is already. Btw in my POV, would be better to use directdraw, instead of sprite, to render the cursor... Would prevent those imba cursor with a giant vertical line on it.
we're talking pascal now... I'm not really familiar with it, but as far as I know, it's a rather weak language.

headshot effect was just an example of how eC is wasting time...

You seem to mock eC's work very often lately. Maybe you want to start developing next soldat releases by yourself?

It'd fail even harder than it already does.
sure, I could develop soldat all by myself.
« Last Edit: May 15, 2010, 11:13:20 am by -Major- »

Offline L[0ne]R

  • Soldat Beta Team
  • Rainbow Warrior
  • ******
  • Posts: 2079
  • need a life. looking for donors.
Re: Draw picture from the pictures center instead of top left.
« Reply #17 on: May 15, 2010, 02:23:14 pm »
F12, but not for all graphics, since that would ruin all interfaces ever made. Would be nice for crosshairs and bullets.
Also weapons and gostek bodyparts.

Yeah, this fix would make modding community very happy. It would be especially good now, when most people are getting bored from normal Soldat and are playing mods more often.

You're probably the only person here who doesn't understand his point.
If that makes you feel smarter, I had no idea what -Major- was talking about either.

sure, I could develop soldat all by myself.
Less talk, more action. Join openSoldat project.
« Last Edit: May 15, 2010, 02:25:45 pm by L[0ne]R »

Offline Neosano

  • Camper
  • ***
  • Posts: 253
  • IIAWAK!
Re: Draw picture from the pictures center instead of top left.
« Reply #18 on: May 15, 2010, 03:09:02 pm »
STOP TALKING ABOUT SHIT!
Just fix the damn CURSOR! It's really stupid when you're getting binked and this damn cursor resizes from top left corner!
KAWAAAAAAAIIIIIIIIII

Offline L[0ne]R

  • Soldat Beta Team
  • Rainbow Warrior
  • ******
  • Posts: 2079
  • need a life. looking for donors.
Re: Draw picture from the pictures center instead of top left.
« Reply #19 on: May 15, 2010, 03:12:24 pm »
STOP TALKING ABOUT s**t!
Just fix the damn CURSOR! It's really stupid when you're getting binked and this damn cursor resizes from top left corner!
Basically whatever you, just you and only you want is ok, everything else is, as you say, shit.
Somehow your posts from long ago seemed to me more appropriate, but lately you've been acting like a stereotypical troll. What can I say.. stop trolling and leave the forums, please. Stand in the corner and think about your behavior.