0 Members and 1 Guest are viewing this topic.
[Sprite data]->Pic1Sprite X-coordinate ->XSprite Y-coordinate ->YSprite X-momentum ->SSprite Y-momentum ->T.Main loopWhile 1 Stuff More stuff ClrDraw X+S->X Y+T->Y Pt-On(X,Y,Pic1)End
Do you mean a user-defined line?
If I understand what you are saying, I don't think that would be the appropriate way to solve my problem for my needs.
Quote from: happybobjr on January 12, 2011, 06:15:15 pmIf I understand what you are saying, I don't think that would be the appropriate way to solve my problem for my needs.What are your needs?Also, sorry about the downrating. I accidentally clicked it.EDIT: Ninja'd.You can just use a For( loop and increment the X and/or Y position.
Quote from: SirCmpwn on January 12, 2011, 06:22:03 pmDo you mean a user-defined line?umm... i think.I want it to be like axe's line algorithm except only draw one pixel at a time. and instead of it being a pixel, i want it to be a sprite.
While 1 Pt-On(X,Y,<pointer> Dispgraph Pt-change(X,Y,<pointer> If <collision detected> Goto <Collision handling> Else X+A->X Y+B->Y EndEnd
Quote from: happybobjr on January 12, 2011, 06:24:57 pmQuote from: SirCmpwn on January 12, 2011, 06:22:03 pmDo you mean a user-defined line?umm... i think.I want it to be like axe's line algorithm except only draw one pixel at a time. and instead of it being a pixel, i want it to be a sprite.Try modifying this:http://ourl.ca/4129/138496
Crud, more complex stuff Thank you. I'll take a lookQuote from: Michael_Lee on January 12, 2011, 06:29:29 pmQuote from: happybobjr on January 12, 2011, 06:24:57 pmQuote from: SirCmpwn on January 12, 2011, 06:22:03 pmDo you mean a user-defined line?umm... i think.I want it to be like axe's line algorithm except only draw one pixel at a time. and instead of it being a pixel, i want it to be a sprite.Try modifying this:http://ourl.ca/4129/138496
Qwerty@ The problem is that i don't know what a and b are. I only know the start point and endpoint.