Computer Science Canada Image not loading in Turing |
Author: | Robotkubo [ Wed Mar 09, 2016 11:45 am ] |
Post subject: | Image not loading in Turing |
So I'm making a game, its all saved on my school server, so whatever computer I use i have my work, I added background menu and information screens that I made. anyways I changed computers to continue to work on it but now that I'm on a different computer it doesn't load the images. It doesn't give me any errors when I try to run but I don't understand why it won't show up, I haven't changed anything from this morning when it did work. var chars : array char of boolean var x : int := 0 var y : int := 0 var x1 : int := 1 var x2 : int := x1 + 10 var y1 : int := 1 var y2 : int := y1 + 10 var xv : real := 0 var yv : real := 0 var g : real := 1 var ground : boolean := true var menu : int := Pic.FileNew ("menu screen.bmp") var info : int := Pic.FileNew ("info screen.bmp") setscreen ("graphics:max;max,offscreenonly,nobuttonbar,title:Escapist Banana") procedure GAME loop Input.KeyDown (chars) if chars (KEY_UP_ARROW) and y2 < maxy and ground = true then yv += 8 end if if chars (KEY_LEFT_ARROW) and x1 > 0 then xv -= 1 elsif chars (KEY_RIGHT_ARROW) and x2 < maxx then xv += 1 elsif chars (KEY_ESC) then exit end if if y1 > 0 then yv -= g elsif y1 < 0 then yv := 0 y1 := 0 end if if xv > 0 then xv -= 0.5 elsif xv < 0 then xv += 0.5 end if if x1 < 0 then x1 := 0 xv := 0 elsif x2 > maxx then x1 := maxx - 10 xv := 0 end if if y2 > maxy then y1 := maxy - 10 yv := 0 end if if y1 = 0 then ground := true else ground := false end if x1 += round (xv) y1 += round (yv) x2 := x1 + 10 y2 := y1 + 10 Draw.FillBox (x1, y1, x2, y2, black) Draw.Box (x1 - 1, y1 - 1, x2 + 1, y2 + 1, grey) locate (1, 1) View.Update delay (10) cls end loop end GAME GAME |
Author: | Insectoid [ Wed Mar 09, 2016 3:48 pm ] |
Post subject: | RE:Image not loading in Turing |
Does your new computer use a different version of Windows? Newer versions of Windows don't play nice with Turing. Try running as administrator and see if that help. |
Author: | Robotkubo [ Thu Mar 10, 2016 11:53 am ] |
Post subject: | RE:Image not loading in Turing |
Thanks for the help, I just removed and resaved the pictures and it worked... still no idea why it stopped working |