[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Creating sprites on the fly?
- To: Pygame Mailing List <pygame-users@xxxxxxxx>
- Subject: [pygame] Creating sprites on the fly?
- From: Julian Marchant <onpon4@xxxxxxxxx>
- Date: Mon, 12 Apr 2010 20:08:39 -0400
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Mon, 12 Apr 2010 20:09:01 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:received:message-id :subject:from:to:content-type; bh=E33Pp7/GrELyfFesVzCbN0fQsEDUq1wJlU8T0hf2gNU=; b=dc0oSBnYbXb1Hax2aSu+da9bOLN1prX/0GugQN0HmoesGZfo8TwmMbLuxM3e4KFvoG K2aVkZITD3mJSiuXsPMo2ZREmt+dLAzL5TTAH3n2iSIbl30dVNpVxrx/qWfN043jsMhU GVfkCLfyLJKtVEr2vf60YhUGXXOZ/SpiCL7BM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=vBW3Cf3Gk7fVSuXWKIpxznPtvE34bszD6+S0J1H44janGiEcCk6ojFlTS5dEvYrCIR sSUhOyXAAJKK1CGsflDAAgfwNAUOHRKCuuky6AE/CPn+swjRFM01rA0vfULELjf68p4i L/MJ5wxQHbc5q6rQpfIyLJa+1QLR2cZ4oSkCs=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Hi, I'm somewhat new to Python and very new to Pygame, so please bear with me if I sound like an idiot.
Is it possible to create sprites on-the-fly?
In my load image function, I would like to add an option to create a simple back-up sprite (a black rectangle will suffice) on-the-fly if the requested sprite is unavailable, to allow the game to still run.
--éæ
Website: http://onpon.co.nr/