Author Topic: My Introduction  (Read 14792 times)

0 Members and 1 Guest are viewing this topic.

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: My Introduction
« Reply #45 on: November 12, 2010, 08:53:06 pm »
Hey welcome here Reptic! Others have already given you great advice so I'll just add that another good method of learning is looking at other people's programs and seeing how they did things. www.ticalc.org has a massive archive of games and is a great place to look. Oh, and don't be afraid to ask questions. Everyone is very nice and helpful here. =)

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: My Introduction
« Reply #46 on: November 12, 2010, 09:22:58 pm »
Okay.  Meishe's program stores the characters to Str1, so in order to use those tokens you must first press [2nd] [Sto>] [Vars] [7] [1] [Enter].  Next find the character you want and delete all the others.  I normally do this by putting it on its own line and then pressing clear on the lines of useless tokens. :) It's pretty simple, but I whipped up a screenie anyway. ;D

Good luck. :D

If you want you can also go into the program and delete the →Str1 and then all you have to do then is run the program then, as long as you don't do anything that will store something to Ans, just push [2ND][STO>][2ND][(-)] (that's the negative sign) and recall the Ans variable.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline Reptic

  • LV0 Newcomer (Next: 5)
  • Posts: 0
  • Rating: +3/-0
    • View Profile
Re: My Introduction
« Reply #47 on: November 12, 2010, 10:32:51 pm »
Okay.  Meishe's program stores the characters to Str1, so in order to use those tokens you must first press [2nd] [Sto>] [Vars] [7] [1] [Enter].  Next find the character you want and delete all the others.  I normally do this by putting it on its own line and then pressing clear on the lines of useless tokens. :) It's pretty simple, but I whipped up a screenie anyway. ;D

Good luck. :D

If you want you can also go into the program and delete the →Str1 and then all you have to do then is run the program then, as long as you don't do anything that will store something to Ans, just push [2ND][STO>][2ND][(-)] (that's the negative sign) and recall the Ans variable.

Ok. I get it now :) Thanks for the answers. You guys are all really great - I don't think I've ever received this many responses to my first thread on any other forum ;D Well, I'm off to go attempt to program a game now. You'll probably see a new thread by me soon, as I'll be sure to ask for help if I run into any trouble. And if I manage to complete some form of small game without any problems, Omnimaga will be the first place I share it. Thanks again everyone :)

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: My Introduction
« Reply #48 on: November 12, 2010, 10:39:45 pm »
Welcome here!
I can't believe I didn't reply to an intro topic until the 4th page!  :o  I'm usually one of the first.  :P

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: My Introduction
« Reply #49 on: November 12, 2010, 10:48:43 pm »
Thanks everyone for the help. I've come up with another question. I spent some time looking through TIBD to get an idea of what to expect, and it all seems pretty understandable. The only thing that seems to confuse me is graphics. I looked at some Ti-BASIC games, and it seems it's possible to use some type of sprite in a game, but I don't see any direct commands to do so. Instead there are mentions about text sprites and hard code sprites, which I don't really understand. Can anyone explain to me how sprites are displayed, moved, etc. in Ti-Basic? You don't have to give me a full step-by-step tutorial or anything, just a general idea of how its done.

Sprites, in the normal computer sense of the word are almost impossible to do well in TI basic. You generally have to use an Assembly library, which can get tricky.

However, text sprites are very easy in pure BASIC. If you're using the graphscreen (which I would recommend for almost all games), then you can use the Text(Y,X,"String command to display text characters. To move them around, simply change the X and Y variables. On the homescreen, you can do the same thing with the Output( command.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: My Introduction
« Reply #50 on: November 12, 2010, 11:09:03 pm »
Thanks everyone for the help. I've come up with another question. I spent some time looking through TIBD to get an idea of what to expect, and it all seems pretty understandable. The only thing that seems to confuse me is graphics. I looked at some Ti-BASIC games, and it seems it's possible to use some type of sprite in a game, but I don't see any direct commands to do so. Instead there are mentions about text sprites and hard code sprites, which I don't really understand. Can anyone explain to me how sprites are displayed, moved, etc. in Ti-Basic? You don't have to give me a full step-by-step tutorial or anything, just a general idea of how its done.

Hard-code sprites:

Don't use these unless you just can't figure out how to make it with text sprites.

its basically using pxl-on and all the coordinates to make a pic:
Code: [Select]
:ClrDraw
:AxesOff:FnOff
:Pxl-on(0,0
:Pxl-on(1,1
:Pxl-on(2,2
:Pxl-on(3,3
:Pxl-on(4,4
:Pxl-on(0,4
:Pxl-on(4,0
that code makes a 5x5 "x"
as you can see, that isn't memory efficient at all.  :P

Text Sprites:
These use the first row of pixels in a character as part of the sprite.  So if you wanted a 5x5 lobster:
the 1s are black, and the 0s are white.   ;)
Code: [Select]
11000
00101
01111
00101
11000
you would find a character that when put on the graphscreen, has a first column of pixels that look like this:
Code: [Select]
1
0
0
0
1
which would be an "I"
that looks like this:
Code: [Select]
11100
01000
01000
01000
11100
see the similarties in the first column?  ;)

similarly, the next character would have the first column identical to the second column of the lobster sprite, so it would be a "≥", and so on.  to display this sprite:
Code: [Select]
:ClrDraw
:"I≥C-C[][]->Str1  \\replace the "[]"s with a space and a "->" with the STO key.
:For(A,0,6
:Text(R,C+A,sub(Str1,A+1,1
:End
R and C are where you the coordinates of your sprite: (Row and Column)
this works because each time A is incremented by 1 and add that to C, the first column's of each character keep moving to the left, clearing everything in the previous character but the first column.  and then the two spaces at the end clear the last character's extra columns.

Hope that helped.  ;)

(so I didn't waste all that time.  :P)  ...jk
« Last Edit: November 12, 2010, 11:28:10 pm by yunhua98 »

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline Reptic

  • LV0 Newcomer (Next: 5)
  • Posts: 0
  • Rating: +3/-0
    • View Profile
Re: My Introduction
« Reply #51 on: November 12, 2010, 11:31:39 pm »
Wow, thanks for typing all that yunhua98 :) Don't worry, it didn't waste your time because I actually understand text sprites now. Well, at least creating them that is; I still have to figure out how to put them to practice (collision detection, maps, etc.)

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: My Introduction
« Reply #52 on: November 12, 2010, 11:37:59 pm »
you are very welcome.  Omnimaga is the site where members help other members.  ;)

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: My Introduction
« Reply #53 on: November 13, 2010, 12:01:37 am »
Wow, thanks for typing all that yunhua98 :) Don't worry, it didn't waste your time because I actually understand text sprites now. Well, at least creating them that is; I still have to figure out how to put them to practice (collision detection, maps, etc.)

Collisions are often one of the hardest parts of games :P
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: My Introduction
« Reply #54 on: November 13, 2010, 12:03:44 am »
Wow, thanks for typing all that yunhua98 :) Don't worry, it didn't waste your time because I actually understand text sprites now. Well, at least creating them that is; I still have to figure out how to put them to practice (collision detection, maps, etc.)

Collisions are often one of the hardest parts of games :P

*cough*Battle Engines*cough* ;)
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: My Introduction
« Reply #55 on: November 13, 2010, 12:08:55 am »
I've never done a battle engine. But collision detection is definitely up there.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: My Introduction
« Reply #56 on: November 13, 2010, 01:21:15 am »
Welcome here Reptic!  Its nice to see you so motivated towards learning new languages :) Omnimaga is a great place to ask questions, and I hope you can continue to learn new things and work towards your goal :)