### Author Topic: Picking back up my 84+SE  (Read 1644 times)

0 Members and 1 Guest are viewing this topic.

#### hellninjas

• LV7 Elite (Next: 700)
• Posts: 625
• Rating: +17/-0
##### Picking back up my 84+SE
« on: January 17, 2013, 01:42:09 am »
I'm playing with Basic again, but want to go a little further into it.
I'm not to smart when it comes to these things, you'll know that from how many questions I ask xD
But i'd like to know how I could do things like tile-mapping, turning a matrix into some sort of inventory, actually USING the graph screen
If there's tutorials for all this, or if you don't mind posting some code with an explanation, i'd be grateful ^_^.
I've really only made menu based games, without using Menu(, but I know I could do something better :I

#### DJ Omnimaga

• Former TI programmer
• CoT Emeritus
• LV15 Omnimagician (Next: --)
• Posts: 55830
• Rating: +3151/-232
• CodeWalrus founder & retired Omnimaga founder
##### Re: Picking back up my 84+SE
« Reply #1 on: January 17, 2013, 02:01:01 am »
I hope you return (I mean not doing a Comeback post only to leave immediately afterward )
« Last Edit: January 17, 2013, 02:01:25 am by DJ_O »
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF

#### hellninjas

• LV7 Elite (Next: 700)
• Posts: 625
• Rating: +17/-0
##### Re: Picking back up my 84+SE
« Reply #2 on: January 17, 2013, 02:07:24 am »
I'll be on the chat a lot more (Under the name Charty).
And I really want to get back into it, too. :C
Damn school blocking EVERYTHING <

#### TIfanx1999

• ಠ_ಠ ( ͡° ͜ʖ ͡°)
• CoT Emeritus
• LV13 Extreme Addict (Next: 9001)
• Posts: 6173
• Rating: +191/-9
##### Re: Picking back up my 84+SE
« Reply #3 on: January 17, 2013, 02:29:46 am »
Hey hellninjas. Good to see you around again. ^^ You shold post a project topic once you get going on this a bit.

#### DJ Omnimaga

• Former TI programmer
• CoT Emeritus
• LV15 Omnimagician (Next: --)
• Posts: 55830
• Rating: +3151/-232
• CodeWalrus founder & retired Omnimaga founder
##### Re: Picking back up my 84+SE
« Reply #4 on: January 17, 2013, 03:12:34 am »
I'll be on the chat a lot more (Under the name Charty).
And I really want to get back into it, too. :C
Damn school blocking EVERYTHING <
Can't you use the forums at home too under mobile mode? I know your computer is bad but it can't be so bad that it can't even handle text-only pages.   http://ourl.ca/18029;imode (there's no image support, though)
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF

#### Stefan Bauwens

• Creator of Myst 89 - סטיבן
• LV10 31337 u53r (Next: 2000)
• Posts: 1799
• Rating: +162/-24
• 68k programmer
##### Re: Picking back up my 84+SE
« Reply #5 on: January 17, 2013, 06:05:01 am »
I'm not really too familiar with TI-Basic, but I understand the method you're talking about.
I'm not sure this may help you, but this is how I would read data, and draw them to the screen(general code):
Code: [Select]
[{1111111},{1000001},{1000001},{1000001},{1000001},{1111111}]->mat(I write it like this, so that it obous it represents the map. However it may be that in TI-Basic you'll have to write it all on one line to make it work.)For a,0,7for b,0,6If mat(a,b)=1 thendraw wallspriteelseif mat(a,b)=0 thendraw floorsprite...endifendforendfor(I'm unsure if I mixed a and b up. I constantly switch coordinates.)
But I hope you understand the principle.

« Last Edit: January 17, 2013, 06:05:32 am by Stefan Bauwens »

Very proud Ticalc.org POTY winner (2011 68k) with Myst 89!
Very proud TI-Planet.org DBZ winner(2013)

Interview with me

#### Sorunome

• Fox Fox Fox Fox Fox Fox Fox!
• Support Staff
• LV13 Extreme Addict (Next: 9001)
• Posts: 7917
• Rating: +373/-13
• Derpy Hooves
##### Re: Picking back up my 84+SE
« Reply #6 on: January 17, 2013, 06:09:41 pm »
like stefan said, only
matrixes do [A] (the token)
to get it
[A](a,b)
And 84 basic has only End
And only Else

And good to see you around again!
 THE GAMEAlso, check out my websiteIf OmnomIRC is screwed up, blame me!Click here to give me an internet!

#### hellninjas

• LV7 Elite (Next: 700)
• Posts: 625
• Rating: +17/-0
##### Re: Picking back up my 84+SE
« Reply #7 on: January 18, 2013, 12:46:38 am »
Alright, that's done ^_^
Now, how would I go about checking the value of a space in a matrix that would keep my X and Y position from moving overtop of it?
I.E. if the value of the space is 1, don't move there.

#### Sorunome

• Fox Fox Fox Fox Fox Fox Fox!
• Support Staff
• LV13 Extreme Addict (Next: 9001)
• Posts: 7917
• Rating: +373/-13
• Derpy Hooves
##### Re: Picking back up my 84+SE
« Reply #8 on: January 18, 2013, 12:47:24 am »
If [A](Y,X)=42
 THE GAMEAlso, check out my websiteIf OmnomIRC is screwed up, blame me!Click here to give me an internet!

#### hellninjas

• LV7 Elite (Next: 700)
• Posts: 625
• Rating: +17/-0
##### Re: Picking back up my 84+SE
« Reply #9 on: January 18, 2013, 12:54:46 am »
I don't quite understand..

Code: [Select]
If K=24 and [A](Y,X)!=1X-1->X
Also, could you explain the reversal of X and Y?

#### Sorunome

• Fox Fox Fox Fox Fox Fox Fox!
• Support Staff
• LV13 Extreme Addict (Next: 9001)
• Posts: 7917
• Rating: +373/-13
• Derpy Hooves
##### Re: Picking back up my 84+SE
« Reply #10 on: January 18, 2013, 12:56:45 am »
it is first Y and then X because it is BASIC, in basic you generally say first the row and then the column.
So
[A](Y,X) returns what is in the matrix at (Y,X) and you can just do comparisons at it as if it was a normal variable then, or you can also store stuff in it like that.
 THE GAMEAlso, check out my websiteIf OmnomIRC is screwed up, blame me!Click here to give me an internet!

#### hellninjas

• LV7 Elite (Next: 700)
• Posts: 625
• Rating: +17/-0
##### Re: Picking back up my 84+SE
« Reply #11 on: January 18, 2013, 12:31:19 pm »
Now, i've gotten changing matrix data all the way to creating and moving around on top of it.
How would I transition onto another matrix/tilemap?
Or does this look easier than it sounds?

#### DJ Omnimaga

• Former TI programmer
• CoT Emeritus
• LV15 Omnimagician (Next: --)
• Posts: 55830
• Rating: +3151/-232
• CodeWalrus founder & retired Omnimaga founder
##### Re: Picking back up my 84+SE
« Reply #12 on: January 18, 2013, 02:37:32 pm »
You need to check if the character has reached the side of the map and is trying to move out. Then when you exit the map engine loop you increment/decrement a variable so you move to the next map spot, depending of which direction you go in, then you must re-enter the map loading code. I don't have any code, though, since I rarely used matrices in pure BASIC.

Also a matrix takes a lot of memory, so make sure to pay attention at your RAM if using them (or you can use ASM libs to copy archived programs to RAM)
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF

#### hellninjas

• LV7 Elite (Next: 700)
• Posts: 625
• Rating: +17/-0
##### Re: Picking back up my 84+SE
« Reply #13 on: January 18, 2013, 02:48:09 pm »
What if I just used the same Matrix over and over?
Like depending on the value of M will depend on which map loads and displays.
Then the character placement.
Or just have a value put up in the matrix, where if the tile value 3 is stepped on and M is equal to a certain amount, just change the map value and re-run the map loading..
I might be over-complicating it though :I
Slow program is slow x3

#### Sorunome

• Fox Fox Fox Fox Fox Fox Fox!
• Support Staff
• LV13 Extreme Addict (Next: 9001)
• Posts: 7917
• Rating: +373/-13
• Derpy Hooves
##### Re: Picking back up my 84+SE
« Reply #14 on: January 18, 2013, 06:56:41 pm »
Yeah, you could use one matrix over and over but i think that it is rather slow.
 THE GAMEAlso, check out my websiteIf OmnomIRC is screwed up, blame me!Click here to give me an internet!