Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Need help figuring out Sprite.Group Collision code
Post: RE: Need help figuring out Sprite.Group Collision ...

Ok I figured out my mistake. I was iterating the same object twice in the for loops above that you quoted. Anyway, here is the corrected code bit: for c in hit_list: for p in hit_list[c]:...
PySam General Coding Help 3 3,374 Sep-15-2017, 03:00 AM
    Thread: pygame problem
Post: RE: pygame problem

(Sep-14-2017, 03:37 PM)metulburr Wrote: Can you link that tutorial? Does it actually suggest to name the script A bit racey.py? Or to put your images in a directory named code? Quote:for the love o...
PySam General Coding Help 7 13,392 Sep-14-2017, 03:57 PM
    Thread: Need help figuring out Sprite.Group Collision code
Post: RE: Need help figuring out Sprite.Group Collision ...

Sorry I wasn't clear. Let me repeat the main part: Question: How do I make it so when a "cell" object from spr_cell_group hits a "plant" object from spr_plant_group, the plant and cell in the indivi...
PySam General Coding Help 3 3,374 Sep-14-2017, 03:39 PM
    Thread: pygame problem
Post: RE: pygame problem

+1 I did that exact tutorial a couple days ago. Move your python code or even redo the installation to something simple like C:\Python\ I save my programs inside that directly directly or on my home...
PySam General Coding Help 7 13,392 Sep-14-2017, 03:34 PM
    Thread: Need help figuring out Sprite.Group Collision code
Post: Need help figuring out Sprite.Group Collision code

OK, so in my "sim" I've managed to assign "cells" or agents to a sprite group, and plants (for cells to eat and obtain food) into another group. After scouring google I came up with the following to p...
PySam General Coding Help 3 3,374 Sep-14-2017, 03:09 PM
    Thread: Noob - What attributes to use for agents in evo sim (GA type)
Post: RE: Noob - What attributes to use for agents in ev...

Thanks! I actually figured it out somehow after stumbling across google again... def update_cells(): # Iterate their food and age, change their physical size to reflect food content for i ...
PySam Data Science 4 3,243 Sep-13-2017, 07:53 PM
    Thread: VPython - Trying to make orbit simulation
Post: RE: VPython - Trying to make orbit simulation

Ok, I got this!! Maybe.... So I did a basic orbital program, 1 sun, and 1 planet that orbits it using proper orbital formulas (I think). Catch is, it's in QBASIC (QB64 specifically)! Haha.. However...
PySam General Coding Help 2 5,627 Sep-13-2017, 02:04 AM
    Thread: Noob - What attributes to use for agents in evo sim (GA type)
Post: RE: Noob - What attributes to use for agents in ev...

(Sep-12-2017, 11:36 PM)Lux Wrote: Not sure how helpful this will be, but my advice would just be to start with a simpler version of this and try to modify it from there, which is generally what I do...
PySam Data Science 4 3,243 Sep-12-2017, 11:54 PM
    Thread: Noob - What attributes to use for agents in evo sim (GA type)
Post: Noob - What attributes to use for agents in evo si...

Ok, hopefully this is not the wrong forum! I'm a hatchling to Python, but understand general concepts. I want to try my hand at creating a simple life evolution sim like the 1000000 others, mostly be...
PySam Data Science 4 3,243 Sep-11-2017, 02:01 PM

User Panel Messages

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