Hey guys I'm attempting to make a super mario like platform game and need help with making images move. Like instead of moving the little man, just having the background moving with the corresponding button movement.
Can anyone hint at how to do this?
Or is moving the little man easier than the background?
Thank you
Darkangelchick -2 Light Poster
Recommended Answers
Jump to PostUm... you provided absolutely no information. So as of right now, I can't answer your question. What are you using as a 2D engine for Python? etc.
Jump to PostHere is an example using the module pygame:
# experiments with module pygame # free from: http://www.pygame.org/ # load, display and move an image import pygame as pg # initialize …
Jump to PostThat's weird.... so
import pygame
is causing the "module not found" error?
Other than trying to install the wrong version of pygame for your python installation, I don't know what could be wrong.
What OS are you using? A GNU/Linux distro or Windows?
Jump to PostHi again :D
I don't know why, but it wasn't accepting the negative values in the event handling. I just made the "down" values negative and multiplied positive values instead, like this:import pygame from pygame.locals import * screen = pygame.display.set_mode((1024, 768)) background = pygame.image.load('marioscreendesign.bmp') man = …
All 13 Replies
shadwickman 159 Posting Pro in Training
besktrap 0 Junior Poster in Training
sneekula 969 Nearly a Posting Maven
Darkangelchick -2 Light Poster
Darkangelchick -2 Light Poster
shadwickman 159 Posting Pro in Training
tomtetlaw -1 Posting Pro
Darkangelchick -2 Light Poster
Darkangelchick -2 Light Poster
shadwickman 159 Posting Pro in Training
Darkangelchick -2 Light Poster
Darkangelchick -2 Light Poster
shadwickman 159 Posting Pro in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.