Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
About
Team
Rules
Stats
Status
Sitemap
Chat
Downloads
Forum
News
Our Projects
Major Community Projects
Recent Posts
Unread Posts
Replies
Tools
SourceCoder3
Other Things...
Omnimaga Radio
TI-83 Plus ASM File Unsquisher
Z80 Conversion Tools
IES TI File Editor
Free RAM areas
Comprehensive Getkeyr table
URL Shortener
Online Axe Tilemap Editor
Help
Contact Us
Change Request
Report Issue/Bug
Team
Articles
Members
View the memberlist
Search For Members
Buddies
Login
Register
Omnimaga
»
Forum
»
Calculator Community
»
Other Calc-Related Projects and Ideas
»
Screen Moving With Person
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Screen Moving With Person (Read 2902 times)
0 Members and 1 Guest are viewing this topic.
SuperSmashcz
Guest
Screen Moving With Person
«
on:
December 19, 2006, 01:38:00 pm »
Ok, my next challenge, to get the screen to move when the "character" goes outside of the screen. How do i do this? Ive looked at the demo that came with xlib, but i cant figure it out
any help?
Logged
Halifax
LV9
Veteran (Next: 1337)
Posts: 1334
Rating: +2/-1
Screen Moving With Person
«
Reply #1 on:
December 19, 2006, 05:04:00 pm »
Hmm you know maybe you should try studying other code or trying it by writing down what exactly needs to happen. Not to be rude but it's like you want us to make the game for you. That's just me
Logged
There are 10 types of people in this world-- those that can read binary, and those that can't.
bfr
LV8
Addict (Next: 1000)
Posts: 819
Rating: +4/-0
Screen Moving With Person
«
Reply #2 on:
December 19, 2006, 05:29:00 pm »
I don't even use xLib, and I have an idea how to solve this.
Simply adjust the portion of the map displayed and the character's position. For example, if the character is all the way at the right side of the screen, store 1 or whatever to its position, and make it so that xLib renders the tiles starting from the location of the map plus 12, if it uses tiles (96=column width in pixels, 8=width of tiles, 96/8=12).
I at least know that xLib uses the real() function to pass commands. So, I highly doubt that this is how xLib renders maps, but let?s say the map data is stored in a giant matrix, and xLib uses real(startRowTile,startColumnTile,matrixwithData). Increase the startColumnTile parameter by 12. Just for clarification, startRowTile would be the first row of the matrix containing the data that xLib would render and startColumnTile would be the first column that xLib would render.
Did that help, or are you even more confused now?
Logged
bfr's website -
http://bfr.tifreakware.net
SuperSmashcz
Guest
Screen Moving With Person
«
Reply #3 on:
December 20, 2006, 09:00:00 am »
Well, im very new to xlib, and id liek some code suggestions, if possible..or hints, cuase theres like nothing here for new people, its like your expected to understand it
Logged
Floodkiller
Guest
Screen Moving With Person
«
Reply #4 on:
December 20, 2006, 10:26:00 am »
If you don't understand xLib, then you should read some tutorials on some more complicated BASIC coding before attempting to do a lib-assisted program. Most of the stuff that you learn using more advanced BASIC is going to carry over to xLib, such as matrix level detection (or more complicated stuff), or sprite moving, or tilemapping. If you don't understand how to do it with ASCII graphics, it will be even harder to learn it with xLib.
Logged
bfr
LV8
Addict (Next: 1000)
Posts: 819
Rating: +4/-0
Screen Moving With Person
«
Reply #5 on:
December 20, 2006, 11:04:00 am »
http://xlib.revsoft.org
I know that xlibman (notice his username) and many others here are good with xLib.
Logged
bfr's website -
http://bfr.tifreakware.net
Spellshaper
LV10
31337 u53r (Next: 2000)
Posts: 1690
Rating: +0/-0
This is me. Or maybe not.
Screen Moving With Person
«
Reply #6 on:
December 20, 2006, 11:24:00 am »
QuoteBegin-bfr+20 Dec, 2006, 23:04-->
QUOTE
(bfr @ 20 Dec, 2006, 23:04)
I know that xlibman (notice his username) and many others here are good with xLib.
wield xLib as you would a brush, pen, cheesecake, or any other weapon of choice.
I would recommend you to learn as many quirks of TI-BASIC first, so you can max xLibs power and speed.
It can do truly amaziung things, but wrong inputs do have the possibility to yield unexpected results ( like crashes
) me likeees backups.
Logged
Radical Pi
LV9
Veteran (Next: 1337)
Posts: 1143
Rating: +5/-2
Screen Moving With Person
«
Reply #7 on:
December 20, 2006, 12:19:00 pm »
You want the screen to scroll when the whatever-you-control (if its an RPG I'm not assuming its a person
) gets to the edge? That's tough from a beginner perspective. Let's see what I remember from when I did it...
I did it with plots, and changed the window when your plot approached X/Y Min/Max.
Put that in terms of xlib and you're good.
Logged
One of these days I'll get a sig I'm really proud of.
Print
Pages: [
1
]
Go Up
« previous
next »
Omnimaga
»
Forum
»
Calculator Community
»
Other Calc-Related Projects and Ideas
»
Screen Moving With Person