Jump to content

Alex24

Members
  • Posts

    4
  • Joined

  • Last visited

About Alex24

  • Birthday 27/02/1999

Recent Profile Visitors

502 profile views

Alex24's Achievements

Vic

Vic (3/54)

1

Reputation

  1. Hey there. I am looking for people to build gamemode(s) from scratch. I have rather hard tasks in mind, which I am completely aware of, and now you should be aswell. I won't be sharing too much information here about my plans, I'd rather see some reference works first, and decide whether or not I want to work with you. Obviously I will be paying you legit amounts of money ( not just a couple hundreds ) for your work, as mentioned before. Just as a side-note, LUA isn't the only language I'm after, since it's not just the gamemode I'd like to create. If you are interested in knowing more and working out a deal together, please contact me on Discord, since I'm most active there and will be able to respond faster. Alex#0356 Thank you for reading.
  2. Alex24

    dx stuff

    Oh I see. Thanks guys! That explanation is really good.
  3. Alex24

    dx stuff

    Aight, I played around with it a little bit, I guess I shouldn't be doing these at 3 in the morning, it just kills my mind. Thanks though!
  4. Alex24

    dx stuff

    Hello! First time posting here I think, I'm kinda new to Lua. So I started doing stuff with dxDrawImage and DrawText, and I am a little bit confused right now. Not sure if it should work or not, but the images are centered and working alright on every resolution, but the text and the "button" is not behaving how it supposed to. dxDrawText("Text here", sWidth/2.199, sHeight/1.29, 177, 14, ... ) I tried doing the positioning in 2 ways. The texts left upper corner should be at 873x837 on 1920x1080 resolution. It works well on that, but not with the others, it goes further away the lower I go. The same with the box, which I'm not gonna include that here, I don't think it's neccessery. So the way I calculated it was like this: 1920/873 which is 2.199. I tried to do it the otherway around, and multiply it by 0,45xxx but it's the same. Here are 2 pictures of how it should look, and how it looks like: 1920x1080: https://puu.sh/w9bmU/b759ec873f.jpg 1152x864: https://puu.sh/w9bkN/3dc163c128.jpg Here is the working picture: dxDrawImage(sWidth/2-204,sHeight/2-404,409,809,...) It is centered on every resolution. I also tried doing sWidth/2.199-88 and sHeight/1.29-7 but didn't help it. It's probably something really obvious but I just can't see it. Or is it the counting thats not right? I saw it in a video a long time ago which I can't find anymore, might have misunderstood something or I can't remember it that well.
×
×
  • Create New...