Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: problem with map -> matrix size  (Read 1706 times)

0 Members and 1 Guest are viewing this topic.

player931402

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
problem with map -> matrix size
« on: October 19, 2011, 04:01:20 pm »
hi all!

In this month i start to work on a RPG game.
I have divided my map ( 1600x1600 ) with a matrix 32x32 ( matrix got, for esample, 01 when the way is clean but reduce your velocity )
Now, i need to create an immage with the  exactly size of one box of the matrix

Math say me: U got square matrix and square map-> 1600/32 -> 50 <-  size of the side of the square


BUT, why this not work? if i load an image 50x50 i can see that the image size is much larger than those of the matrix


Why this happens? Any suggest?


P.s.: Sorry for my bad eng >.<


Enjoy!

Haikarainen

  • Guest
problem with map -> matrix size
« Reply #1 on: October 19, 2011, 09:13:52 pm »
Show some code

player931402

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
problem with map -> matrix size
« Reply #2 on: October 19, 2011, 09:39:12 pm »
Quote from: "Haikarainen"
Show some code


no code for this..

i wanna only say why if ( im sure ) i have 32x32 matrix on 1600x1600 map a box is not large 50 pixel >.<

julen26

  • Jr. Member
  • **
  • Posts: 89
    • View Profile
    • http://julen26.blogspot.com
problem with map -> matrix size
« Reply #3 on: October 19, 2011, 11:26:41 pm »
Sorry but I can't understand what are you trying to solve. If you load an image, it'll be drawn with its original size.
Anyway you can change the image size, using resizing or scaling functions.

Code: [Select]
no code for this..


Note that there are very good programmers here, and be sure that all of them easily would be able to develop any kind of game. So don't be afraid of showing a piece of code if you want some useful help.

We all want to help everybody.  :wink: