Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / Need help with stretching sprites

Author
Message
sonec gaimr1
21
Years of Service
User Offline
Joined: 10th Feb 2003
Location: USA
Posted: 28th Nov 2003 22:08 Edited at: 28th Nov 2003 22:10
Now first off, I like to say that I'm a newbie so don't start howling with laughter if I don't know this . Right now I'm messing around with sprites. I've already figured out how to move a sprite(with my brother's help)and cycle several sprite frames and all that junk, but what I'm trying to do right now is to stretch the sprite and then cycle them. Any help is welcome! Here's my code.


And here's the bitmap I'm using


Bert is evil, Barney is evil, and the Pillsbury Doughboy is evil. I knew it from the start.
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 28th Nov 2003 23:36
That works already! What do you need help with?

stretch sprite 1,150,150 works!

Change it to 500,500 and you will see the huge tank!

Pincho.
sonec gaimr1
21
Years of Service
User Offline
Joined: 10th Feb 2003
Location: USA
Posted: 29th Nov 2003 01:42
Well what I meant to say is that I'm try to get that sprite in the top left corner hidden.


Bert is evil, Barney is evil, and the Pillsbury Doughboy is evil. I knew it from the start.
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 29th Nov 2003 02:19
You put a whole bunch of sprites up that corner in the beginning of your code.........Plus the bullet is there too!

sprite 2, 0, 0, 2
sprite 3, 0, 0, 3
sprite 4, 0, 0, 4
sprite 5, 0, 0, 5
sprite 6, 0, 0, 6
sprite 7, 0, 0, 7
sprite 8, 0, 0, 8

You could just hide them. You could put them offscreen.

Pincho.
sonec gaimr1
21
Years of Service
User Offline
Joined: 10th Feb 2003
Location: USA
Posted: 1st Dec 2003 01:09
Now, I've changed the code, and it still does it.


Bert is evil, Barney is evil, and the Pillsbury Doughboy is evil. I knew it from the start.
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 1st Dec 2003 11:57 Edited at: 1st Dec 2003 12:01
This line is showing them again! Rem it out, and you will see.

show sprite image


Pincho.

Best to put them offscreen anyway, because I have heard that you can collide with hidden sprites.
sonec gaimr1
21
Years of Service
User Offline
Joined: 10th Feb 2003
Location: USA
Posted: 1st Dec 2003 20:58 Edited at: 1st Dec 2003 21:01
Ok, I'm sorry if I'm being a pain in the rear, but what I'm trying to do is to cycle the sprite without those sprites in the top left corner showing. I could do all this without any help, but I want to stretch the sprite to a bigger size and I need to declare the sprite to stretch it.

Bert is evil, Barney is evil, and the Pillsbury Doughboy is evil. I knew it from the start.
sonec gaimr1
21
Years of Service
User Offline
Joined: 10th Feb 2003
Location: USA
Posted: 1st Dec 2003 21:01
Oh, and I tried what you said Pincho, and there wasn't a tank sprite at all besides the bullet sprite.

Bert is evil, Barney is evil, and the Pillsbury Doughboy is evil. I knew it from the start.
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 1st Dec 2003 23:21



This fixes it, but you should really understand that code. Otherwise you will get nowhere with this game.

Pincho.
sonec gaimr1
21
Years of Service
User Offline
Joined: 10th Feb 2003
Location: USA
Posted: 2nd Dec 2003 05:35
Your right Pincho, but as I said, I'm a newbie and just experimenting. Thanks for the help!

Bert is evil, Barney is evil, and the Pillsbury Doughboy is evil. I knew it from the start.

Login to post a reply

Server time is: 2024-05-02 09:32:15
Your offset time is: 2024-05-02 09:32:15