Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
20 May, 2013, 06:43:43 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: [1] 2   Go Down
  Print  
Author Topic: ANother noob qusestion - help plz  (Read 789 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
obon7
LV2 Member (Next: 40)
**
Offline Offline

Last Login: 12 February, 2012, 07:35:15
Date Registered: 23 November, 2011, 02:22:11
Posts: 34


Topic starter
Total Post Ratings: 0

View Profile
« on: 28 November, 2011, 06:35:13 »
0

Can anybody explain to me what a sprite is and how do you use/create them THX. Frustrated
Logged

epic7
Chopin!
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: Today at 04:26:36
Date Registered: 22 October, 2011, 01:45:43
Location: Northeast US
Posts: 2162


Total Post Ratings: +118

View Profile
« Reply #1 on: 28 November, 2011, 06:43:34 »
0

Sprite is an 8x8 object used in games

A sprite would be stored like
[sprite data]->Pic1
Or pic2, pic3 etc

Inside the [], the sprite is in hexadecimal.
For example,
[FFFFFFFFFFFFFFFF]->Pic1
(16 Fs) would make a block that is all black

To make the hexadecimals, I use the program included in the axe folder that is with the app
 It is called HEXPIC , I believe.

To use them, once you have stored it, like in pic1

Do
Pt-On(X coord, Y coord,Pic1)

(and don't forget to DispGraph Wink )
 
« Last Edit: 28 November, 2011, 06:46:08 by epic7 » Logged



Current Projects:
TitleLanguageProgressStatus
DrillMiner    C (ndless)   35%         Active
?     C (ndless)   0%        Unconfirmed

Spoiler for Programming languages I currently know:
Java (Learning in AP Comp Sci)
C (Specifically Ndless)
Unity JavaScript
LabView (For FIRST robotics)
z80 ASM (Just a little bit Tongue)
obon7
LV2 Member (Next: 40)
**
Offline Offline

Last Login: 12 February, 2012, 07:35:15
Date Registered: 23 November, 2011, 02:22:11
Posts: 34


Topic starter
Total Post Ratings: 0

View Profile
« Reply #2 on: 28 November, 2011, 06:56:11 »
0

THX
Logged

saintrunner
Custom Spriter: You ask it! I'll Make it!
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: 09 March, 2013, 02:00:40
Date Registered: 27 October, 2011, 21:52:46
Location: Right here....I think?
Posts: 1776


Total Post Ratings: +97

View Profile WWW
« Reply #3 on: 29 November, 2011, 00:14:02 »
0

And if you are making the sprite move, I suggest using
Pt-change(X,Y,pic#)
dispgraph
Pt-change(X,Y,pic#)

pt change simply changes the point from on to off, or vis versa. And pt-on just turns it on, or pt-off which is off. Smiley
Logged

My Sprites Thread   :Updated often Smiley for your viewing pleasure

GAMES:
epic7
Chopin!
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: Today at 04:26:36
Date Registered: 22 October, 2011, 01:45:43
Location: Northeast US
Posts: 2162


Total Post Ratings: +118

View Profile
« Reply #4 on: 29 November, 2011, 00:16:27 »
0

Lol, I've never used that before Tongue
I just do pt-On

and always have a dispgraphclrdraw

I tried pt-off once but it screwed up Huh?
Logged



Current Projects:
TitleLanguageProgressStatus
DrillMiner    C (ndless)   35%         Active
?     C (ndless)   0%        Unconfirmed

Spoiler for Programming languages I currently know:
Java (Learning in AP Comp Sci)
C (Specifically Ndless)
Unity JavaScript
LabView (For FIRST robotics)
z80 ASM (Just a little bit Tongue)
parserp
Hero Extraordinaire
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: 16 May, 2013, 23:40:53
Date Registered: 08 September, 2011, 02:01:43
Location: Here.
Posts: 1420


Total Post Ratings: +80

View Profile WWW
« Reply #5 on: 29 November, 2011, 00:19:07 »
0

Lol, I've never used that before Tongue
I just do pt-On

and always have a dispgraphclrdraw

I tried pt-off once but it screwed up Huh?
yeah me too, I save everything but the moving thing to the back buffer and use RecallPic every Frame.
Logged

ticalc.org | Cemetech | TI-Freakware | casiocalc.org

My New Website!
Spoiler for The Rest:



A useful tool
Spoiler for bands:
Five Finger Death Punch
Disturbed
Slipknot
Linkin Park
Avenged Sevenfold
Breaking Benjamin
Skillet
30 Seconds to Mars
Happybobjr
James Oldiges
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: Today at 00:20:45
Date Registered: 01 June, 2010, 00:52:05
Location: IN, United States
Posts: 2273


Total Post Ratings: +100

View Profile
« Reply #6 on: 29 November, 2011, 00:19:47 »
0

point off just makes the 8 by 8 white, then draws the black part to the screen Tongue
Logged

School: East Central High School

Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Non-Cas |||  OS: 1.1 |||  Build: Old  |||  84+ keypad.   Being lent out
____________________________________________________________
epic7
Chopin!
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: Today at 04:26:36
Date Registered: 22 October, 2011, 01:45:43
Location: Northeast US
Posts: 2162


Total Post Ratings: +118

View Profile
« Reply #7 on: 29 November, 2011, 00:26:21 »
0

Lol, I've never used that before Tongue
I just do pt-On

and always have a dispgraphclrdraw

I tried pt-off once but it screwed up Huh?
yeah me too, I save everything but the moving thing to the back buffer and use RecallPic every Frame.

Ooh, good idea.

Wait, how? Tongue
« Last Edit: 29 November, 2011, 00:27:03 by epic7 » Logged



Current Projects:
TitleLanguageProgressStatus
DrillMiner    C (ndless)   35%         Active
?     C (ndless)   0%        Unconfirmed

Spoiler for Programming languages I currently know:
Java (Learning in AP Comp Sci)
C (Specifically Ndless)
Unity JavaScript
LabView (For FIRST robotics)
z80 ASM (Just a little bit Tongue)
parserp
Hero Extraordinaire
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: 16 May, 2013, 23:40:53
Date Registered: 08 September, 2011, 02:01:43
Location: Here.
Posts: 1420


Total Post Ratings: +80

View Profile WWW
« Reply #8 on: 29 November, 2011, 00:31:27 »
0

Lol, I've never used that before Tongue
I just do pt-On

and always have a dispgraphclrdraw

I tried pt-off once but it screwed up Huh?
yeah me too, I save everything but the moving thing to the back buffer and use RecallPic every Frame.

Ooh, good idea.

Wait, how? Tongue
I usually use an appvar- do this:

1
2
3
4
5
6
7
8
:GetCalc("appvLELVEL",Y0
:Copy(Y0,L3,768
:Repeat GetKey(15)
:RecallPic
:draw player and stuff
:DispgraphClrdraw
:movement stuff
:End
Logged

ticalc.org | Cemetech | TI-Freakware | casiocalc.org

My New Website!
Spoiler for The Rest:



A useful tool
Spoiler for bands:
Five Finger Death Punch
Disturbed
Slipknot
Linkin Park
Avenged Sevenfold
Breaking Benjamin
Skillet
30 Seconds to Mars
saintrunner
Custom Spriter: You ask it! I'll Make it!
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: 09 March, 2013, 02:00:40
Date Registered: 27 October, 2011, 21:52:46
Location: Right here....I think?
Posts: 1776


Total Post Ratings: +97

View Profile WWW
« Reply #9 on: 29 November, 2011, 01:11:34 »
0

Wait, how do you make appvars?
Logged

My Sprites Thread   :Updated often Smiley for your viewing pleasure

GAMES:
parserp
Hero Extraordinaire
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: 16 May, 2013, 23:40:53
Date Registered: 08 September, 2011, 02:01:43
Location: Here.
Posts: 1420


Total Post Ratings: +80

View Profile WWW
« Reply #10 on: 29 November, 2011, 01:15:44 »
0

Wait, how do you make appvars?
:GetCalc("appvNameOfAppvar",#OfBytes)->Pointer
then to store stuff into it:
Copy(StuffToCopy,Pointer,#OfBytes)

...such as:
:GetCalc("appvBLAH",768)->A //apvar created and stored into A with 768 bytes (enough for a picture)
:Copy(L6,A,768) //copies buffer into appvar (just like an OS pic)
Logged

ticalc.org | Cemetech | TI-Freakware | casiocalc.org

My New Website!
Spoiler for The Rest:



A useful tool
Spoiler for bands:
Five Finger Death Punch
Disturbed
Slipknot
Linkin Park
Avenged Sevenfold
Breaking Benjamin
Skillet
30 Seconds to Mars
saintrunner
Custom Spriter: You ask it! I'll Make it!
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: 09 March, 2013, 02:00:40
Date Registered: 27 October, 2011, 21:52:46
Location: Right here....I think?
Posts: 1776


Total Post Ratings: +97

View Profile WWW
« Reply #11 on: 29 November, 2011, 01:17:53 »
0

so is L6 a list? How does that part work, How do I put stuff as the list?
Logged

My Sprites Thread   :Updated often Smiley for your viewing pleasure

GAMES:
parserp
Hero Extraordinaire
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: 16 May, 2013, 23:40:53
Date Registered: 08 September, 2011, 02:01:43
Location: Here.
Posts: 1420


Total Post Ratings: +80

View Profile WWW
« Reply #12 on: 29 November, 2011, 01:20:10 »
0

so is L6 a list? How does that part work, How do I put stuff as the list?
L6 isn't a "list", such as the lists in the OS, but they are Pointers.
L6 happens to be where the data for the buffer is stored. (buffer: aka: graph screen Wink)
when you use the command dispgraph, it evaluates the data in L6 and draws points accordingly.
« Last Edit: 29 November, 2011, 01:20:58 by parser padwan » Logged

ticalc.org | Cemetech | TI-Freakware | casiocalc.org

My New Website!
Spoiler for The Rest:



A useful tool
Spoiler for bands:
Five Finger Death Punch
Disturbed
Slipknot
Linkin Park
Avenged Sevenfold
Breaking Benjamin
Skillet
30 Seconds to Mars
saintrunner
Custom Spriter: You ask it! I'll Make it!
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: 09 March, 2013, 02:00:40
Date Registered: 27 October, 2011, 21:52:46
Location: Right here....I think?
Posts: 1776


Total Post Ratings: +97

View Profile WWW
« Reply #13 on: 29 November, 2011, 01:22:43 »
0

so could I store a main loop as an appvar? for example, could I have my program set up as this:

in the program it has the menu info, then if you press level 1 it opens appvLEVEL1 which has all of the loop and stuff for that level, ? This is, to store level 1 as an appvar instead of another program.
Logged

My Sprites Thread   :Updated often Smiley for your viewing pleasure

GAMES:
parserp
Hero Extraordinaire
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: 16 May, 2013, 23:40:53
Date Registered: 08 September, 2011, 02:01:43
Location: Here.
Posts: 1420


Total Post Ratings: +80

View Profile WWW
« Reply #14 on: 29 November, 2011, 01:25:26 »
0

so could I store a main loop as an appvar? for example, could I have my program set up as this:

in the program it has the menu info, then if you press level 1 it opens appvLEVEL1 which has all of the loop and stuff for that level, ? This is, to store level 1 as an appvar instead of another program.
you can store data in an appvar, but as far as putting code in them, it doesn't work. I'm not sure why, but asm people say that a lot of stuff gets screwed up. (ask asm person for more info)
Logged

ticalc.org | Cemetech | TI-Freakware | casiocalc.org

My New Website!
Spoiler for The Rest:



A useful tool
Spoiler for bands:
Five Finger Death Punch
Disturbed
Slipknot
Linkin Park
Avenged Sevenfold
Breaking Benjamin
Skillet
30 Seconds to Mars
Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.272 seconds with 31 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.