Jump to content




getting a monitor to show an animation

computer

3 replies to this topic

#1 goldensecret

  • Members
  • 24 posts

Posted 28 February 2014 - 11:19 PM

yo, i am looking to make a blinking eye in an animation on my monitor, but the problem is that i don't know how. i was looking at doing it with npaint pro's .nfa file, which for the unknowing is a animation file with that program.

http://www.computerc...-145-npaintpro/

if theres a way to do it with his program that would be wonderful, but if not, meh. i don't really mind, as long as i don't have to make it out of number and or letters, in the shape i want, im happy,

any help appreciated, thanks for the awesome community!

#2 CometWolf

  • Members
  • 1,283 posts

Posted 28 February 2014 - 11:24 PM

Idk bout using npp's animation files elsewhere, but you could just draw each frame of the animation as a regular picture and then load them in a loop.

#3 goldensecret

  • Members
  • 24 posts

Posted 02 March 2014 - 03:33 PM

View PostCometWolf, on 28 February 2014 - 11:24 PM, said:

Idk bout using npp's animation files elsewhere, but you could just draw each frame of the animation as a regular picture and then load them in a loop.
and how would i go about this? i am brand new to CC and any programming language. i can draw my image, but how would i load them in a loop on a screen?

#4 Thib0704

  • Members
  • 93 posts
  • LocationgetServer().getPlayer("Thib0704").getLocation();

Posted 02 March 2014 - 05:24 PM

View Postgoldensecret, on 02 March 2014 - 03:33 PM, said:

View PostCometWolf, on 28 February 2014 - 11:24 PM, said:

Idk bout using npp's animation files elsewhere, but you could just draw each frame of the animation as a regular picture and then load them in a loop.
and how would i go about this? i am brand new to CC and any programming language. i can draw my image, but how would i load them in a loop on a screen?
monitor = "back"
local anim = fs.list("/img/")
term.redirect(peripheral.wrap(monitor))
while true do
    for k,v in pairs(anim) do
		 local img = paintutils.loadImage("/img/" .. v)
		 paintutils.drawImage(img, 1,1)
    end
end

Should work.
Just put the images in "/img/"
In order (1. 2. 3. 4.)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users