Advertisement Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

106 Neutral

About Safixk

  • Rank
  1. Safixk

    Anyone up for Tutoring?

    Thanks for your answers guys - After lurking around a tiny bit more - I found another post, which linked me to a page... And I've decided not to work with C++ for quite a while.
  2. Hey There! I'm making a game using Python(v2.6.6), and the PyGame library. It's a RPG game, and I've barely started... But questions have already come up. I want to make a way in which the character will not only go in all directions... But I also want it so the sprite changes according to the direction I'm going. I've managed to create a loop that animates the walking movement - For the Up and Down directions but the image doesn't turn around according to the direction... Also the way I made to loop the images was a I thing that came up to me - I'm not sure if it's correct, nor if its the best way to do so. Here's my code, and thanks for any and all help: [source lang="python"] import pygame, sys, glob from pygame import * pygame.init() size = width, height = 600,400 clock = pygame.time.Clock() black = 0,0,0 screen = pygame.display.set_mode(size) class player: def __init__(self): self.x = 300 self.y = 200 self.ani_speed_init=10 self.ani_speed=self.ani_speed_init self.ani = glob.glob("chardown*.png") self.ani.sort() self.ani_pos=0 self.ani_max = len(self.ani) -1 self.img = pygame.image.load(self.ani[0]) self.update(0) def update(self, pos): if pos != 0: self.ani_speed-=1 self.y+=pos if self.ani_speed == 0: self.img = pygame.image.load(self.ani[self.ani_pos]) self.ani_speed = self.ani_speed_init if self.ani_pos == self.ani_max: self.ani_pos = 0 else: self.ani_pos+=1 screen.blit(self.img,(self.x,self.y)) player1 = player() pos = 0 while 1: clock.tick(60) screen.fill(black) for event in pygame.event.get(): if event.type == pygame.QUIT: sys.exit() elif event.type == KEYDOWN and event.key == K_DOWN: pos = 1 elif event.type == KEYUP and event.key == K_DOWN: pos = 0 elif event.type == KEYDOWN and event.key == K_UP: pos = -1 elif event.type == KEYUP and event.key == K_UP: pos = 0 player1.update(pos) pygame.display.update() [/source]
  3. #OpFacebook is a #FakeOp - #Anonymous has nothing to do with it, or the #RansomWare attacks - #Nov5 has nothing to do with a #CyberAttack
  4. Safixk

    Anyone up for Tutoring?

    Hello There! Believe it or not I'm 13(as of two weeks ago) and I have had experience with your typical Web Development knowledge(HTML, CSS, PHP, MySQL, etc..) And right now I'm looking for a bigger challenge: Game Development - Thus why I've come to the wonderful GameDev community to see if anyone would be willing to share their knowledge I've tried everything from Books to Online Courses - Nothing worked because they didn't achieve what I was looking for, and some of them where awfully paced and I couldn't learn anything that they taught (leading me to drop out) - But mainly because when I had a question outside of the FAQ's, well, there was no one for me to use as a recourse. I want to start developing in C++ because it seems like the perfect fit for making games, it's lightweight, fast, and not too hardware intensive. But if you think I should start learning something prior to it, another flavor, or language even, just tell me where I can learn it. I've got email, skype, and can acquire anything else. So if you're up to it, just reply to the thread with some contact info, and maybe a project that you've made before, and I'll PM you according to my need. Thanks for any and all help. EDIT: Nevermind - I just found something that might just cut it for me
  5. Safixk

    Simulating 3D in a 2D world

    Hello There! I'm a beginner as well, and here's some terms that I've heard about, they might just help you. But you might need to do some research on them. What you are looking for is Isometric textures, which allow you to have certain things appear in 3D while you are working with 2D really. Also you might want to look into parallax scrolling, which allows your Character Sprite to move in all directions as if there was a 3D plane instead of a just right-left kind of thing. As for water reflection I'm not really sure what you can do apart from realistic textures, and for water reflection, you might need to do some research on your own. I've you've played Pokemon, you'll be sure to know what I'm talking about. It's a 2D game but it looks 3D because it uses isometric textures and parallax scrolling. So to sum it up: 1- No, not really you can't implement 3D models and keep the 2D aspect of the game, BUT you can make 2D objects appear 3D 2- I think there is no "live" way to do it, so maybe you can have a sort of a transparent sprite over the water sprite and the transparent sprite is a "reflection" of the objects near the water. Down side of that is, let's say the character goes by the water, he won't be able to see himself reflected. 3- Don't change the dimension of the squares, leave them as is, but design your sprites in a way in which they appear 3D Now here's something to help you out understanding what I mean (even though it's not using code as much as a game engine) - and here is what you should be looking for "Tutorial: 3-Dimensional Games", also make sure to download the .zip and read the PDF as it contains some information you might want. Hope it helps! - Pedro "Safixk"
  6. Sweet just got #GunCraft from @ExatoGames videos to come soon on my new @YouTube "ArchangelAcrylics" Yes, it's a gaming channel!
  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!