what do you mean don't import? as in drag it directly to the folders? well, yes coz it's the engine that is making it transparent... it doesn't matter how you did it
Light from a lamp/torch
RPG Maker VXAce SupportOkay then, how do I prevent it from making it transparent, it isn;t supposed to be transparent right there.
EDIT:
Is there a way for me to make the center origin on the actual lamp?
EDIT:
Is there a way for me to make the center origin on the actual lamp?
Hmmm... Let's see... try saving it as .JPG, then import using the normal method, I believe that should show the transparency option
I will try that, thank you.
hmmm... I think if you cannot place it right using the 32x32 grid, you'd probably need to edit the light image to adjust it...
or try doing this on another event (using script command), set to autorun then erase after
light = $game_map.events[iD of the light event]
light.x = some value
light.y = some value
try playing with that x and y and see if you can adjust the lights
or try doing this on another event (using script command), set to autorun then erase after
light = $game_map.events[iD of the light event]
light.x = some value
light.y = some value
try playing with that x and y and see if you can adjust the lights
Perhaps I am the one who did it wrong. But I just copied and paste and did 003 for the event ID
try it without 00, just use 3 for the ID...
if it still errors, then try removing the x= and y= and use this instead:
light.moveto(whatever x, whatever y)
if it still errors, then try removing the x= and y= and use this instead:
light.moveto(whatever x, whatever y)
Same error
here is what I have:
light = $game_map.events[3]
light.x = 100
light.y = 100
Erase Event (After the script call of course)
here is what I have:
light = $game_map.events[3]
light.x = 100
light.y = 100
Erase Event (After the script call of course)
btw, did you manage to make the transparency option to appear?
Haven't tried yet because I'm trying to get this to work.
And it seems to be only moving horizontal (x) and not vertical (y)
nevermind, i forget it goes right to left. 🙂
thank you so much for that, although... I do have the problem of it showing the light event, and then moving the light event... Do you think there could be a way to make sure it doesn't have a gap of time before it moves?
Use a parallel process instead of autorun so that it actually runs before you see the map
Okay, but here is another problem... Its not moving by pixels and I can't even get it near where the lamp it (the middle part of the light) Or I just don't know where the point is that it moves. But even still I can't get the middle onto the lamp.
I figured it wouldn't...
try putting this on a script
class Game_Event def movetox(x, y) @x = x @y = y @real_x = @x @real_y = @y @prelock_direction = 0 straighten update_bush_depth endendthen change your script call from moveto to movetoxif that doesn't work
try this other script
try putting this on a script
class Game_Event def movetox(x, y) @x = x @y = y @real_x = @x @real_y = @y @prelock_direction = 0 straighten update_bush_depth endendthen change your script call from moveto to movetoxif that doesn't work
try this other script
Code:
class Game_Event def movetox(x, y) @x = x*32 @y = y*32 @real_x = @x @real_y = @y @prelock_direction = 0 straighten update_bush_depth endend
Do you want me to put that in the actual scripts (F11) or in the event itself?
on an actual script 🙂
Neither one of them seem to be working. I used both with .movetox (200, 200) Which should be around the middle of the map. It just disappears. Heres the full script call:
light = $game_map.events[3]
light.movetox(200, 200)
so your map is around 400x400 tiles? hmmm...
or if 200x200 was not tile based, try using the tile based coordinates
or if 200x200 was not tile based, try using the tile based coordinates
It is 30x25, but by pixels it would be far more then that.
try the tile based coordinate (15,12.5)... I think it uses that
and use the first script...
and use the first script...
HAHAHHAHAHA I could hug you right now!
It turned out to be 10.1, 11.5 I can probably get it a bit more center then that, but even .1 seems to change it crap ton! Do you think I could do 10.01? Or does that equate to 10.1? I'd like to get it a bit finer, if thats possible. Cause 10.1 is like 10 and then an extra 10 pixels or so.
It turned out to be 10.1, 11.5 I can probably get it a bit more center then that, but even .1 seems to change it crap ton! Do you think I could do 10.01? Or does that equate to 10.1? I'd like to get it a bit finer, if thats possible. Cause 10.1 is like 10 and then an extra 10 pixels or so.
Original thread: https://forums.rpgmakerweb.com/threads/light-from-a-lamp-torch.21475/