Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Starting place for Pygame Mobile app
Post: RE: Starting place for Pygame Mobile app

(Oct-15-2022, 07:37 AM)ndc85430 Wrote: Did you look around the Internet? Obviously. This my post here, which to me clear is on the internet, was literally part of me doing that. If we look at your ...
XavierPlatinum Game Development 2 2,415 Oct-15-2022, 05:51 PM
    Thread: Starting place for Pygame Mobile app
Post: Starting place for Pygame Mobile app

For anyone who's made mobile apps before, where is a smart place to start making a pygame game for android? Is there a simple template I can dissect somewhere? Pygame, I get. How to develop on my P...
XavierPlatinum Game Development 2 2,415 Oct-14-2022, 10:46 PM
    Thread: Variable Types in a class
Post: RE: Variable Types in a class

Python has a type() function for just that. print(type(your_variable))
XavierPlatinum General Coding Help 9 2,476 Oct-06-2022, 07:31 PM
    Thread: how to convert tuple value into string
Post: RE: how to convert tuple value into string

You have to convert the items in the tuple separately. your_string = f"{str(your_tuple[0])} {str(your_tuple[1])}"
XavierPlatinum General Coding Help 2 2,351 Oct-06-2022, 01:34 AM
    Thread: Tips on Converting BASIC to Pygame
Post: RE: Tips on Converting BASIC to Pygame

(Oct-05-2022, 11:59 AM)rob101 Wrote: ZX Basic: Wow! That takes me back. I cut my coding teeth with a ZX81 Do you really need Pygame for this? Not that I know the first thing about Pygame, but I sup...
XavierPlatinum Game Development 4 2,453 Oct-05-2022, 06:07 PM
    Thread: Pygame running slow
Post: RE: Pygame running slow

If your code is true to the tutorial, then check your for loops. Make sure that all the indentations are correct. One wrong TAB can make it loop a thousand times when once is what you want. Just one...
XavierPlatinum Game Development 3 2,000 Oct-05-2022, 06:00 PM
    Thread: Tetris inteligence
Post: RE: Tetris inteligence

If I were to attempt such a thing, my first step would be to make a tetris game so I understand it well. As a beginner, designing and implementing a tetris AI in someone else's game might have to man...
XavierPlatinum Game Development 5 1,580 Oct-04-2022, 09:40 PM
    Thread: Tetris inteligence
Post: RE: Tetris inteligence

I don't know what you mean? If you are new, maybe follow a tetris tutorial on Youtube? Tetris is complex for a first game to write.
XavierPlatinum Game Development 5 1,580 Oct-04-2022, 06:48 PM
    Thread: how to use mouse to locate pixel co-ordinates
Post: RE: how to use mouse to locate pixel co-ordinates

Looks like someone is testing their new bot project on us! lol
XavierPlatinum Game Development 4 2,181 Oct-03-2022, 05:39 PM
    Thread: Word game revisited
Post: RE: Word game revisited

It's pretty good. Where the heck did you get that word list? lol The only thing I could suggest is giving a pop-up when the person enters more than one letter at a time, or have it accept the lett...
XavierPlatinum Code sharing 1 1,866 Sep-12-2022, 02:33 AM
    Thread: Folding in ATOM
Post: RE: Folding in ATOM

(Sep-11-2022, 06:34 PM)snippsat Wrote: You should also look for new editor as Sunsetting Atom🌓 Thanks for the bad news! I guess lol.
XavierPlatinum General Coding Help 5 1,236 Sep-11-2022, 09:21 PM
    Thread: Folding in ATOM
Post: RE: Folding in ATOM

Never mind. After three days a f'n with it, I posted, then 2 mins later I somehow fixed it. Typical for me.
XavierPlatinum General Coding Help 5 1,236 Sep-11-2022, 05:59 PM
    Thread: Folding in ATOM
Post: Folding in ATOM

All of a sudden the folding doesn't work right in ATOM. I must have hit something or a hotkey I didn't mean to. Some things fold and others don't. It did work fine until now. Lots of things have t...
XavierPlatinum General Coding Help 5 1,236 Sep-11-2022, 05:34 PM
    Thread: Confused with Pygame documentation. (Newbie here)
Post: RE: Confused with Pygame documentation. (Newbie he...

(Sep-10-2022, 04:07 AM)monkeydesu Wrote: if self.rect.right < 0: self.kill()And what does the "right" here mean? I understand it's to wipe the sprite enemy from the screen. Does "righ...
XavierPlatinum Game Development 3 1,830 Sep-10-2022, 02:36 PM
    Thread: Scraping and breaking out of Loop
Post: RE: Scraping and breaking out of Loop

What about replacing the while loop with a for loop? Then it will stop when it is finished.
XavierPlatinum Web Scraping & Web Development 3 1,849 Sep-08-2022, 04:01 AM
    Thread: Newbie needs help part 2
Post: RE: Newbie needs help part 2

(Sep-07-2022, 07:17 PM)dvejsa Wrote: #Lista på bilar som redan finns inne: volvo = input () print("Ah ett mycket bra val, detta är en Volvo V90 från 2020 med endast 100 mil.") citroen = input () pr...
XavierPlatinum General Coding Help 14 3,035 Sep-07-2022, 08:10 PM
    Thread: Newbie needs help
Post: RE: Newbie needs help

miles = input() print(car + " " + " " + year+ " " + mile) #Are they "miles" or "mile"?Try using f strings print(f"{car} {year} {miles} miles")
XavierPlatinum General Coding Help 5 1,096 Sep-06-2022, 07:26 PM
    Thread: finding local area in dictionary
Post: RE: finding local area in dictionary

UPDATE: I went with the try/except route. Works fine. I've used that local list for drawing and updating too. I discovered a fun fact. Using sprite.Group.update() on a huge group, even if most of...
XavierPlatinum Game Development 3 2,224 Sep-02-2022, 03:07 AM
    Thread: finding local area in dictionary
Post: finding local area in dictionary

I have a dictionary of tile sprites, (x,y) are the keys. I think I have found how to determine the tiles local to the player, but I get a KeyError when those tiles don't exist. Is it best practice...
XavierPlatinum Game Development 3 2,224 Sep-01-2022, 11:07 PM
    Thread: can't get collision detection to work in platform game
Post: RE: can't get collision detection to work in platf...

(Aug-17-2022, 07:22 PM)chairmanme0wme0w Wrote: i've managed to fix the jumping problem but now ive added the collisions for the sides of the platforms and i just cant get it to work **huh** when t...
XavierPlatinum Game Development 10 3,822 Aug-17-2022, 09:45 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020