This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#51 2012-12-23 12:22:13

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: The Evil Banana: a side scroller made in Python/Pygame

OrcaCat wrote:

I've never figured out how to do

 repeat (10)
do stuff 
in Python

for i in range(10):
    pass # do stuff

OrcaCat wrote:

Actually, I think there is a glitch in Pygame...

Code:

Traceback <most recent call last>:
    File "C:\Python25\pygametest.py", line 4, in <module>
        import pygame, sys
ImportError: Bad magic number in C:\Python25\pygame.pyc

I'm pretty sure that means you're using different versions of Python (eg. you're trying to use Pygame for Python 2 with Python version 3, or vice versa) — or possibly that you have the wrong architecture (eg 32-bit vs 64-bit).

Last edited by blob8108 (2012-12-23 12:22:35)


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#52 2012-12-23 17:34:44

OrcaCat
Scratcher
Registered: 2010-06-30
Posts: 500+

Re: The Evil Banana: a side scroller made in Python/Pygame

Which download of Pygame should I choose for Python 3.2?


     Awesome music     Electrode's theme     Epic music
Bye, 1.x.  sad                             Hello, 2.x!  smile

Offline

 

#53 2012-12-24 05:19:54

pinnipediator
Scratcher
Registered: 2012-02-10
Posts: 500+

Re: The Evil Banana: a side scroller made in Python/Pygame

I've no idea what version of pygame i've got. I'll have a look.

Offline

 

#54 2012-12-24 06:54:29

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: The Evil Banana: a side scroller made in Python/Pygame

OrcaCat wrote:

Which download of Pygame should I choose for Python 3.2?

The one that corresponds with your version of Python — for example, "pygame-1.9.2a0.win32-py3.2.msi" for Windows.

Honestly, though, you're probably better off using Python 2.7 with Pygame — I think it's better supported iirc.


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#55 2012-12-24 14:10:10

OrcaCat
Scratcher
Registered: 2010-06-30
Posts: 500+

Re: The Evil Banana: a side scroller made in Python/Pygame

blob8108 wrote:

OrcaCat wrote:

Which download of Pygame should I choose for Python 3.2?

The one that corresponds with your version of Python — for example, "pygame-1.9.2a0.win32-py3.2.msi" for Windows.

Honestly, though, you're probably better off using Python 2.7 with Pygame — I think it's better supported iirc.

I DID download that version--however, it says there is no module named "locals". I'll get python 2.7 then.


     Awesome music     Electrode's theme     Epic music
Bye, 1.x.  sad                             Hello, 2.x!  smile

Offline

 

#56 2012-12-25 10:02:29

pinnipediator
Scratcher
Registered: 2012-02-10
Posts: 500+

Re: The Evil Banana: a side scroller made in Python/Pygame

Yay! I drew a rectangle on pygame! It actually worked!
This may sound silly to all you experienced people, but i really am a beginner. 
I also did a triangle and a multicoloured ellipse.  smile

Offline

 

#57 2012-12-26 14:24:34

OrcaCat
Scratcher
Registered: 2010-06-30
Posts: 500+

Re: The Evil Banana: a side scroller made in Python/Pygame

Okay, I got Pygame to work.
EDIT:
Never mind, I got this error

Code:

Traceback (most recent call last):
  File "C:/Python27/pygametest.py", line 18, in <module>
    screen.blit(background, (0,0))
NameError: name 'background' is not defined

even though in my program it says

Code:

backgroud=pygame.image.load(bif).convert()

sad

Last edited by OrcaCat (2012-12-26 14:28:10)


     Awesome music     Electrode's theme     Epic music
Bye, 1.x.  sad                             Hello, 2.x!  smile

Offline

 

#58 2012-12-27 06:29:24

pinnipediator
Scratcher
Registered: 2012-02-10
Posts: 500+

Re: The Evil Banana: a side scroller made in Python/Pygame

I haven't got onto loading images yet.
Sorry.

Offline

 

#59 2012-12-27 09:25:23

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: The Evil Banana: a side scroller made in Python/Pygame

OrcaCat wrote:

Code:

backgroud=pygame.image.load(bif).convert()

You misspelt "background".

Last edited by blob8108 (2012-12-27 09:25:32)


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#60 2012-12-27 17:44:18

OrcaCat
Scratcher
Registered: 2010-06-30
Posts: 500+

Re: The Evil Banana: a side scroller made in Python/Pygame

blob8108 wrote:

OrcaCat wrote:

Code:

backgroud=pygame.image.load(bif).convert()

You misspelt "background".

Lol!!!!

EDIT:
Yay, it works now.
http://oi49.tinypic.com/34odnv6.jpg
EDIT: You misspelled "misspelled". LOL

Last edited by OrcaCat (2012-12-29 21:38:15)


     Awesome music     Electrode's theme     Epic music
Bye, 1.x.  sad                             Hello, 2.x!  smile

Offline

 

#61 2012-12-28 09:25:30

Gravitation
New Scratcher
Registered: 2012-09-26
Posts: 500+

Re: The Evil Banana: a side scroller made in Python/Pygame

I discovered a huge error in Pygame, and have developed a dislike for it...  tongue

Resizable windows are nearly impossible and crash. :oooo

I recently discovered Pyglet, which I use mainly now, since window resizing is super easy and is bug-free, and very controllable. It runs on OpenGL, which is really fast  big_smile

We can continue on Pygame, though.  tongue  Anything you need from me?

Offline

 

#62 2012-12-29 21:34:14

OrcaCat
Scratcher
Registered: 2010-06-30
Posts: 500+

Re: The Evil Banana: a side scroller made in Python/Pygame

Gravitation wrote:

I discovered a huge error in Pygame, and have developed a dislike for it...  tongue

Resizable windows are nearly impossible and crash. :oooo

I recently discovered Pyglet, which I use mainly now, since window resizing is super easy and is bug-free, and very controllable. It runs on OpenGL, which is really fast  big_smile

We can continue on Pygame, though.  tongue  Anything you need from me?

Well, I really wish someone else would plan this, because I'm terrible at designing. And busy too. But I have a weird feeling that we won't get anyone new in this collab. All I need you to do is to make a project and advertise this in your signature, hopefully we will get more members that way. And yes, i want to keep doing Pygame. I guess we'll just have to have an un-resizable window. And I assume you are on a PC?


     Awesome music     Electrode's theme     Epic music
Bye, 1.x.  sad                             Hello, 2.x!  smile

Offline

 

#63 2012-12-30 01:33:47

Gravitation
New Scratcher
Registered: 2012-09-26
Posts: 500+

Re: The Evil Banana: a side scroller made in Python/Pygame

OrcaCat wrote:

Gravitation wrote:

I discovered a huge error in Pygame, and have developed a dislike for it...  tongue

Resizable windows are nearly impossible and crash. :oooo

I recently discovered Pyglet, which I use mainly now, since window resizing is super easy and is bug-free, and very controllable. It runs on OpenGL, which is really fast  big_smile

We can continue on Pygame, though.  tongue  Anything you need from me?

Well, I really wish someone else would plan this, because I'm terrible at designing. And busy too. But I have a weird feeling that we won't get anyone new in this collab. All I need you to do is to make a project and advertise this in your signature, hopefully we will get more members that way. And yes, i want to keep doing Pygame. I guess we'll just have to have an un-resizable window. And I assume you are on a PC?

Yes, I'm on my Windows 7 laptop. I will create a project to advertise this. I wish I had a siggy  sad   tongue  I might get somebody else to put it in their signature, though.

I can help with designing, but unfortunately I know very little about Pokemon, so we'll have to do that collaboratively.

Offline

 

#64 2012-12-30 13:01:13

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: The Evil Banana: a side scroller made in Python/Pygame

Gravitation wrote:

I discovered a huge error in Pygame, and have developed a dislike for it...  tongue

Resizable windows are nearly impossible and crash.  yikes

What flags did you pass to set_mode? I think there might be a resize event you have to handle in your event loop...

Last edited by blob8108 (2012-12-30 13:03:17)


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#65 2012-12-31 01:10:05

OrcaCat
Scratcher
Registered: 2010-06-30
Posts: 500+

Re: The Evil Banana: a side scroller made in Python/Pygame

OrcaCat wrote:

Hey! I'm making Axel F in 8-bit. I think it should be the theme song for this.

Nevermind, it turned out terribly. Now I'm making my own composition.


     Awesome music     Electrode's theme     Epic music
Bye, 1.x.  sad                             Hello, 2.x!  smile

Offline

 

#66 2012-12-31 01:15:09

OrcaCat
Scratcher
Registered: 2010-06-30
Posts: 500+

Re: The Evil Banana: a side scroller made in Python/Pygame

Gravitation wrote:

OrcaCat wrote:

Gravitation wrote:

I discovered a huge error in Pygame, and have developed a dislike for it...  tongue

Resizable windows are nearly impossible and crash. :oooo

I recently discovered Pyglet, which I use mainly now, since window resizing is super easy and is bug-free, and very controllable. It runs on OpenGL, which is really fast  big_smile

We can continue on Pygame, though.  tongue  Anything you need from me?

Well, I really wish someone else would plan this, because I'm terrible at designing. And busy too. But I have a weird feeling that we won't get anyone new in this collab. All I need you to do is to make a project and advertise this in your signature, hopefully we will get more members that way. And yes, i want to keep doing Pygame. I guess we'll just have to have an un-resizable window. And I assume you are on a PC?

Yes, I'm on my Windows 7 laptop. I will create a project to advertise this. I wish I had a siggy  sad   tongue  I might get somebody else to put it in their signature, though.

I can help with designing, but unfortunately I know very little about Pokemon, so we'll have to do that collaboratively.

Okay, thanks a lot. I have Windows 7 too.


     Awesome music     Electrode's theme     Epic music
Bye, 1.x.  sad                             Hello, 2.x!  smile

Offline

 

#67 2012-12-31 01:27:21

OrcaCat
Scratcher
Registered: 2010-06-30
Posts: 500+

Re: The Evil Banana: a side scroller made in Python/Pygame

blob8108 wrote:

will export all the costumes as PNG files.

Will Kurt keep transparency?


     Awesome music     Electrode's theme     Epic music
Bye, 1.x.  sad                             Hello, 2.x!  smile

Offline

 

#68 2012-12-31 08:20:14

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: The Evil Banana: a side scroller made in Python/Pygame

OrcaCat wrote:

blob8108 wrote:

will export all the costumes as PNG files.

Will Kurt keep transparency?

Yes.  smile


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#69 2012-12-31 11:05:13

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: The Evil Banana: a side scroller made in Python/Pygame

blob8108 wrote:

Gravitation wrote:

I discovered a huge error in Pygame, and have developed a dislike for it...  tongue

Resizable windows are nearly impossible and crash.  yikes

What flags did you pass to set_mode? I think there might be a resize event you have to handle in your event loop...

Try this.


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#70 2012-12-31 12:47:49

OrcaCat
Scratcher
Registered: 2010-06-30
Posts: 500+

Re: The Evil Banana: a side scroller made in Python/Pygame

blob8108 wrote:

OrcaCat wrote:

blob8108 wrote:

will export all the costumes as PNG files.

Will Kurt keep transparency?

Yes.  smile

Yay!


     Awesome music     Electrode's theme     Epic music
Bye, 1.x.  sad                             Hello, 2.x!  smile

Offline

 

#71 2013-01-04 09:52:49

pinnipediator
Scratcher
Registered: 2012-02-10
Posts: 500+

Re: The Evil Banana: a side scroller made in Python/Pygame

Oops, sorry, been away, do you need me to do anything?

Offline

 

#72 2013-01-04 16:21:23

OrcaCat
Scratcher
Registered: 2010-06-30
Posts: 500+

Re: The Evil Banana: a side scroller made in Python/Pygame

pinnipediator wrote:

Oops, sorry, been away, do you need me to do anything?

Mostly help with designing. How much do you know about Pokemon? School's starting again, so I will be less available.


     Awesome music     Electrode's theme     Epic music
Bye, 1.x.  sad                             Hello, 2.x!  smile

Offline

 

#73 2013-01-04 17:22:05

OrcaCat
Scratcher
Registered: 2010-06-30
Posts: 500+

Re: The Evil Banana: a side scroller made in Python/Pygame

I finally got around to making the concept art. http://oi49.tinypic.com/k1xt2e.jpg
1. Your energy bar. Using attacks, hovering, and sprinting uses this energy. A is hyper beam. S is Meteor mash. D is sprint. F is hover. Your energy will slowly gain when NOT attacking, hovering, or sprinting. Sprinting increases your speed. If you run out of energy, you will be immobile until your and lose some HP.
2. Your HP. When you run out of HP, you lose.
3. You. You try to defeat enemies and escape the city before being KO'ed or captured.
4. A failed attempt at drawing a Team Rocket member.
5. Enemies who will try to shoot/catch you.


     Awesome music     Electrode's theme     Epic music
Bye, 1.x.  sad                             Hello, 2.x!  smile

Offline

 

#74 2013-01-05 03:38:33

pinnipediator
Scratcher
Registered: 2012-02-10
Posts: 500+

Re: The Evil Banana: a side scroller made in Python/Pygame

That's cool  smile 
I know more than average about pokemon, specialising in the original 200 and whatever.
There should be other wild pokemon around, some should be helpful (e.g. Here have this berry, I'm not using it) and some should want to kill you (obviously). I think berries should be the main source of healing, because there aren't trainers around to give you potions, Although I think pokemon centers are also open to wild pokemon as well.
Having to avoid people who want to catch you would be a good idea too, as they would weaken you first, therefore giving a reason to knock off some hp. I've got other ideas too, but they don't really stay on topic right now, and might be a bit much.

Offline

 

#75 2013-01-05 12:21:17

OrcaCat
Scratcher
Registered: 2010-06-30
Posts: 500+

Re: The Evil Banana: a side scroller made in Python/Pygame

Great ideas!


     Awesome music     Electrode's theme     Epic music
Bye, 1.x.  sad                             Hello, 2.x!  smile

Offline

 

Board footer