ポスト #1 · 2016-09-06 04:44:51pmにポスト 7.7年前
MadkaT | |
---|---|
Member | |
822 ポスト | |
Not Set | |
Reg. 2009-11-24 | |
Hello, I'm again giving some troubles I'm creating a tile for fill the full screen, but I'm having some unexpected results, I've made a tile to create a grid with hexagonal patterns, but when I'm going to check in the screen I'm getting this:
The original image is cropped, also I've made test with indexed images, but the result is always the same, it's showing some unwanted pixels between the tiles. Here is the code that I'm using to create the tile.
If someone could help me. I'll be glad.
The original image is cropped, also I've made test with indexed images, but the result is always the same, it's showing some unwanted pixels between the tiles. Here is the code that I'm using to create the tile.
t[#t+1] = Def.ActorFrame {
LoadActor("hextile2")..{
InitCommand=cmd(FullScreen;);
OnCommand=function(self)
local w = DISPLAY:GetDisplayWidth() / self:GetWidth();
local h = DISPLAY:GetDisplayHeight() / self:GetHeight();
self:customtexturerect(0,0,w,h);
self:texcoordvelocity(-5,0);
end;
};
};
LoadActor("hextile2")..{
InitCommand=cmd(FullScreen;);
OnCommand=function(self)
local w = DISPLAY:GetDisplayWidth() / self:GetWidth();
local h = DISPLAY:GetDisplayHeight() / self:GetHeight();
self:customtexturerect(0,0,w,h);
self:texcoordvelocity(-5,0);
end;
};
};
If someone could help me. I'll be glad.
ポスト #2 · 2016-09-06 06:57:44pmにポスト 7.7年前
Kyzentun | |
---|---|
Member | |
3,209 ポスト | |
Reg. 2008-02-20 | |
"I'm honestly pissed off." |
Add "(stretch)" to the name so it'll be stretched across the texture space.
ポスト #3 · 2016-09-06 09:14:00pmにポスト 7.7年前
MadkaT | |
---|---|
Member | |
822 ポスト | |
Not Set | |
Reg. 2009-11-24 | |
Thanks, I've forgotten that.