Author Topic: Line( not working for me? (SOLVED)  (Read 2724 times)

0 Members and 1 Guest are viewing this topic.

Offline Derf321

  • LV3 Member (Next: 100)
  • ***
  • Posts: 59
  • Rating: +0/-0
    • View Profile
Line( not working for me? (SOLVED)
« on: April 19, 2012, 11:53:05 pm »
I have a program I made in Basic (birds eye nazi zombies), and I converted it over to Axe. I've gotten pretty much everything to work except Line('s and Pxl-On('s aren't displaying anything. I use this style:
Line(1,2,1,5)
Pxl-On(5,10)

Thats the same for Axe, right?

EDIT: In this post - http://ourl.ca/8409
I see "r" after line, like: Line(w,x,y,z)r
What does r stand for?


I feel dumb now, gonna go sulk in the corner and program  :P
« Last Edit: April 19, 2012, 11:59:20 pm by Derf321 »

Offline Jonius7

  • python! Lua!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1918
  • Rating: +82/-18
  • Still bringing new dimensions to the TI-nspire...
    • View Profile
    • TI Stadium
Re: Line( not working for me?
« Reply #1 on: April 19, 2012, 11:54:23 pm »
I'm not 100% sure but I think you have to put Dispgraph somewhere in your program too.
Programmed some CASIO Basic in the past
DJ Omnimaga Music Discographist ;)
DJ Omnimaga Discography
My Own Music!
My Released Projects (Updated 2015/05/08)
TI-nspire BASIC
TI-nspire Hold 'em
Health Bar
Scissors Paper Rock
TI-nspire Lua
Numstrat
TI-nspire Hold 'em Lua
Transport Chooser
Secret Project (at v0.08.2 - 2015/05/08)
Spoiler For Extra To-Be-Sorted Clutter:

Spoiler For Relegated Projects:
TI-nspire BASIC
Battle of 16s (stalled) | sTIck RPG (stalled) | Monopoly (stalled) | Cosmic Legions (stalled)
Axe Parser
Doodle God (stalled while I go and learn some Axe)

Offline Derf321

  • LV3 Member (Next: 100)
  • ***
  • Posts: 59
  • Rating: +0/-0
    • View Profile
Re: Line( not working for me?
« Reply #2 on: April 19, 2012, 11:58:51 pm »
I'm not 100% sure but I think you have to put Dispgraph somewhere in your program too.

Yup, thanks haha.

Offline Jonius7

  • python! Lua!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1918
  • Rating: +82/-18
  • Still bringing new dimensions to the TI-nspire...
    • View Profile
    • TI Stadium
Re: Line( not working for me?
« Reply #3 on: April 19, 2012, 11:59:51 pm »
I'm not 100% sure but I think you have to put Dispgraph somewhere in your program too.

Yup, thanks haha.

DT was rather quick on that too. Credits go to him too!
It's good to see your making some good progress on Axe (more than I ever have so far) :D
« Last Edit: April 20, 2012, 12:00:07 am by Jonius7 »
Programmed some CASIO Basic in the past
DJ Omnimaga Music Discographist ;)
DJ Omnimaga Discography
My Own Music!
My Released Projects (Updated 2015/05/08)
TI-nspire BASIC
TI-nspire Hold 'em
Health Bar
Scissors Paper Rock
TI-nspire Lua
Numstrat
TI-nspire Hold 'em Lua
Transport Chooser
Secret Project (at v0.08.2 - 2015/05/08)
Spoiler For Extra To-Be-Sorted Clutter:

Spoiler For Relegated Projects:
TI-nspire BASIC
Battle of 16s (stalled) | sTIck RPG (stalled) | Monopoly (stalled) | Cosmic Legions (stalled)
Axe Parser
Doodle God (stalled while I go and learn some Axe)

Offline cooliojazz

  • Support Staff
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 619
  • Rating: +66/-9
  • I omnoms on your soul
    • View Profile
    • Unreal Phantasies
Re: Line( not working for me?
« Reply #4 on: April 20, 2012, 12:03:57 am »
Jonius7 is correct, the drawing commands draw to the buffer, you have to use DispGraph to copy the buffer to the screen when you actually want to show anything.  And Ęł for drawing commands causes them to draw on the back-buffer instead of the main one.
EDIT: Oops, damnit, stupid ninjas that arent actually that ninja and more me failing at life =P
« Last Edit: April 20, 2012, 12:04:53 am by cooliojazz »
Spoiler For Random signess:
You can not beat my skills.
Trust me.
So don't even try.
And remember never to trust someone who says, "Trust me."

TI File Editor Progress: Remade in java like a boss. 50% we'll call it? IDK =P
Java Libraries: JIRC - 90% JTIF - 5%
TI Projects: Unreal Notator - -5000%
Nomcraft, a Bukkit mod
Some of the music I write can be found here | The Rest Should Be Here (Bandcamp)