Advertisement
Guest User

Untitled

a guest
Apr 18th, 2013
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. on_place = function(itemstack, user, pointed_thing)
  2. local var = user:hud_add( {
  3. type = "image",
  4. position = {x=0.8, y=0.02},
  5. name = "potions_hud_bg.png",
  6. scale = {x=2, y=2},
  7. text = {"potions_hud_bg.png"},
  8. })
  9.  
  10. local posy = 0.02
  11. local player = user
  12. local function move_up(player)
  13. player:hud_change(var, position, {x=0.8, y=posy})
  14. posy = posy-0.001
  15. minetest.after(0.2, function(player) move_up(player) end)
  16. end
  17. move_up()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement