Light from a lamp/torch

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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
 

Bloodmorphed

Dungeon Fanatic
Veteran
Joined
Sep 17, 2012
Messages
1,466
Reaction score
144
First Language
English
Primarily Uses
Okay 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?
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
Hmmm... Let's see... try saving it as .JPG, then import using the normal method, I believe that should show the transparency option
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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
 

Bloodmorphed

Dungeon Fanatic
Veteran
Joined
Sep 17, 2012
Messages
1,466
Reaction score
144
First Language
English
Primarily Uses
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


Perhaps I am the one who did it wrong. But I just copied and paste and did 003 for the event ID
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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)
 
Last edited by a moderator:

Bloodmorphed

Dungeon Fanatic
Veteran
Joined
Sep 17, 2012
Messages
1,466
Reaction score
144
First Language
English
Primarily Uses
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)
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
if it still errors, then try removing the x= and y= and use this instead:


light.moveto(whatever x, whatever y)
btw, did you manage to make the transparency option to appear?
 

Bloodmorphed

Dungeon Fanatic
Veteran
Joined
Sep 17, 2012
Messages
1,466
Reaction score
144
First Language
English
Primarily Uses
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?
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
Use a parallel process instead of autorun so that it actually runs before you see the map
 
Last edited by a moderator:

Bloodmorphed

Dungeon Fanatic
Veteran
Joined
Sep 17, 2012
Messages
1,466
Reaction score
144
First Language
English
Primarily Uses
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.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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

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
 

Bloodmorphed

Dungeon Fanatic
Veteran
Joined
Sep 17, 2012
Messages
1,466
Reaction score
144
First Language
English
Primarily Uses
Do you want me to put that in the actual scripts (F11) or in the event itself?
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
on an actual script :)
 

Bloodmorphed

Dungeon Fanatic
Veteran
Joined
Sep 17, 2012
Messages
1,466
Reaction score
144
First Language
English
Primarily Uses
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)
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
so your map is around 400x400 tiles? hmmm...


or if 200x200 was not tile based, try using the tile based coordinates
 
Last edited by a moderator:

Bloodmorphed

Dungeon Fanatic
Veteran
Joined
Sep 17, 2012
Messages
1,466
Reaction score
144
First Language
English
Primarily Uses
It is 30x25, but by pixels it would be far more then that.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
try the tile based coordinate (15,12.5)... I think it uses that


and use the first script...
 
Last edited by a moderator:

Bloodmorphed

Dungeon Fanatic
Veteran
Joined
Sep 17, 2012
Messages
1,466
Reaction score
144
First Language
English
Primarily Uses
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.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,085
Members
137,583
Latest member
write2dgray
Top