Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
[Pygame] Tileset Animation
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
yannisv  
View profile  
 More options Nov 14 2012, 1:07 pm
From: yannisv <yannisveza...@gmail.com>
Date: Wed, 14 Nov 2012 10:07:16 -0800 (PST)
Local: Wed, Nov 14 2012 1:07 pm
Subject: [pygame] [Pygame] Tileset Animation
Hello! Allow me first to apologize if this post is a duplicate, apparently my
first one was not accepted and I just subscribed. Now, I've been trying to
make a 2D RPG but I'm stuck. I cannot figure out how to properly use
tilesets, and I cannot find any useful or beginner-friendly tutorials.

First of all, I have the tileset of my main character. I want to slice the
image into tiles and use them for my character's movement. Up, down, right,
left.

Secondly, how can I use a "map" I made with Tiled Map Editor with pygame? I
simply exported my map as an image file, but I guess if it was imported in
the code as tiles, with scenery and object layers, it would be easier to add
things like collision detection etc.

--
View this message in context: http://pygame-users.25799.n6.nabble.com/Pygame-Tileset-Animation-tp33...
Sent from the pygame-users mailing list archive at Nabble.com.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Santiago Romero  
View profile  
 More options Nov 14 2012, 2:24 pm
From: Santiago Romero <srom...@sromero.org>
Date: Wed, 14 Nov 2012 20:23:37 +0100
Local: Wed, Nov 14 2012 2:23 pm
Subject: Re: [pygame] [Pygame] Tileset Animation

> Secondly, how can I use a "map" I made with Tiled Map Editor with pygame? I
> simply exported my map as an image file, but I guess if it was imported in
> the code as tiles, with scenery and object layers, it would be easier to
> add
> things like collision detection etc.

Didn't try it, but a quick google search ("tmx pygame") ended in:

http://silveiraneto.net/2009/12/19/tiled-tmx-map-loader-for-pygame/

http://www.pygame.org/project-Tiled+TMX+Loader-2036-.html

Hope this helps

--
Santiago Romero
Ubuntu GNU/Linux
http://www.sromero.org


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Radomir Dopieralski  
View profile  
 More options Nov 14 2012, 2:52 pm
From: Radomir Dopieralski <pyg...@sheep.art.pl>
Date: Wed, 14 Nov 2012 20:52:32 +0100
Local: Wed, Nov 14 2012 2:52 pm
Subject: Re: [pygame] [Pygame] Tileset Animation

On Wed, Nov 14, 2012 at 7:07 PM, yannisv <yannisveza...@gmail.com> wrote:
> Hello! Allow me first to apologize if this post is a duplicate, apparently my
> first one was not accepted and I just subscribed. Now, I've been trying to
> make a 2D RPG but I'm stuck. I cannot figure out how to properly use
> tilesets, and I cannot find any useful or beginner-friendly tutorials.

> First of all, I have the tileset of my main character. I want to slice the
> image into tiles and use them for my character's movement. Up, down, right,
> left.

> Secondly, how can I use a "map" I made with Tiled Map Editor with pygame? I
> simply exported my map as an image file, but I guess if it was imported in
> the code as tiles, with scenery and object layers, it would be easier to add
> things like collision detection etc.

I ran a tutorial on that topic this year, the first part is recorded
and the sources are available.
https://ep2012.europython.eu/conference/talks/hands-on-with-pygame

(I will be running an improved version of that tutorial in March on
PyCon.US, *if* they accept it)

--
Radomir Dopieralski, http://sheep.art.pl


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
B W  
View profile  
 More options Nov 14 2012, 6:18 pm
From: B W <stabbingfin...@gmail.com>
Date: Wed, 14 Nov 2012 15:18:48 -0800
Local: Wed, Nov 14 2012 6:18 pm
Subject: Re: [pygame] [Pygame] Tileset Animation

Howdy. I'd like to add to the decent suggestions.

If all you want to do is animate a sprite from a tile sheet, you can use
the Spritesheet recipe <http://www.pygame.org/wiki/Spritesheet>. It might
be useful as is, or you can tailor it to your needs. While you're there, be
sure to check out the pygame cookbook
<http://www.pygame.org/wiki/CookBook>to fill up your bag of tricks.

In addition to the resources mentioned for working with Tiled map files,
there is my favorite
pytmxloader<http://www.pygame.org/project-map+loader+for+%27tiled%27-1158-3692.html>
which
comes with a very robust pygame demo.

If you care to study a great example of a map scrolling technique, I always
recommend Retro Game
Library<http://www.pygame.org/project-Retro+Game+Library-1065-.html>.
I call this a great example because it is a complete yet simple game
framework, making it exceptionally instructional.

The following few projects use Tiled, pytmxloader with pygame to great
effect: three pyweek competitions
<http://code.google.com/p/multifac/>, a pyweek
warmup<http://code.google.com/p/multifac/downloads/detail?name=fort-izembo-1...>,
and the tile scrolling engine Gummworld
2<http://www.pygame.org/project-Gummworld2-1733-3879.html>.
I imagine there are more out there. Projects such as these may offer a
potential for higher learning.

Finally, you might get more ideas and suggestions on IRC freenode.net#pygame.
Just ask your question and give it some time. Folks there tend to stay
logged in so they can catch up on chat once in a while. Long periods of
silence are not uncommon. They are not ignoring you, just sleeping or
gaming or watching TV, or doing things that are certainly better left
unknown. :)

Gumm

On Wed, Nov 14, 2012 at 11:52 AM, Radomir Dopieralski
<pyg...@sheep.art.pl>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
yannisv  
View profile  
 More options Nov 21 2012, 2:18 pm
From: yannisv <yannisveza...@gmail.com>
Date: Wed, 21 Nov 2012 11:18:51 -0800 (PST)
Local: Wed, Nov 21 2012 2:18 pm
Subject: [pygame] Re: [Pygame] Tileset Animation
Thank you for your responses.

I ended up making many different images for the player movement. The player
seems stuck though, as it will not change no matter which buttons I press.
Is it possible to tell me what is wrong, or how to update it properly?

Thanks in advance.

import pygame
import sys
import os
from pygame.locals import *

--
View this message in context: http://pygame-users.25799.n6.nabble.com/Pygame-Tileset-Animation-tp33...
Sent from the pygame-users mailing list archive at Nabble.com.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jake b  
View profile  
 More options Nov 21 2012, 3:15 pm
From: Jake b <ninmonk...@gmail.com>
Date: Wed, 21 Nov 2012 14:15:04 -0600
Local: Wed, Nov 21 2012 3:15 pm
Subject: Re: [pygame] [Pygame] Tileset Animation

Here's some examples using Tided map format:

http://www.pygame.org/tags/tiled
http://www.pygame.org/tags/tmx

--
Jake

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »