Thread: Blue Profiles
View Single Post
  #5  
Old 01-11-2006, 03:27 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally Posted by Yen
Alright, here's a problem.
I'm trying to script an online level editor.
I can't figure out how to draw the tileset in the scroll control.

Problem #1: How can I read the tileset image?
Problem #2: No controls, except for GuiBitmapCtrl, will show anything for some reason.
Problem #3: GuiBitmapCtrl is gradually stretching the image on the horizontal axis, if I use getimgwidth() and getimgheight() for the dimensions. The beginning of the image isn't stretched, but the end of it is extremely distorted.
Problem #4: If I set the width and height to the tileset's size, it draws fine, but as I scroll over, the x position of the GuiBitmapCtrl slides backwards.

If anyone can help, I'd appreciate it.
If not, it's fine, I'm not in good scripting shape at the moment. I'll probably figure it out eventually.
Why don't you work from (or reference) the one Stefan released?
Reply With Quote