Questions tagged [arcade]

Arcade is a Python library for creating 2D video games.

Reference:

Documentation:

110 questions
6
votes
1 answer

How to keep one body on top of another using Pymunk

I've got a circle, with a box on top: The circle is a simple motor. I want the box to stay directly over the circle. I've tried different constraints, but most of my attempts cause the box to flop to the side. My most successful attempt is to set…
Paul Vincent Craven
  • 2,027
  • 3
  • 19
  • 24
5
votes
1 answer

In Python, how can i make an interactive button using images in arcade?

I'm trying to create an interactive button in arcade, using python. I'm using os to import images and wondered if I could convert the clicking function to the image. I hope to open up a new window by clicking on the image. I am aware that tkinter is…
Sammy
  • 53
  • 5
4
votes
1 answer

How does delta_time work on python arcade?

I’m going through the tutorials on python arcade and would like to know how/why a function works. There is a function named on_draw(delta_time) I looked around the code for arcade but can’t figure out how the library knows to keep the clock running.…
user1026169
  • 5,345
  • 5
  • 21
  • 35
3
votes
2 answers

Collision error in arcade: When I use the arcade.check_for_collision method in python and a collision occurs, it gives an error

I am making a snake game, when I want to implement the collision of the snake with the apple, I encounter the following error. Collision error in arcade: When I use the arcade.check_for_collision method in python and a collision occurs, it gives an…
3
votes
2 answers

How do I use a .jpg or .png as a background picture?

I found a nice image of space that I'd like sitting in the background of this tiny game I'm working on and can't figure out what and where to write it. It needs to be placed behind all classes to make sure that it doesn't block the screen. I thought…
3
votes
1 answer

Window Screenshot Python Arcade Library

How does one take a screenshot of the current window using the Python Arcade library? I have built a simulator using the Python Arcade library and would like to take a screenshot of the window programmatically when interesting events occur. Is this…
3
votes
1 answer

Infinite scrolling background in Python

I'm trying to create an infinite scrolling background for a simple 'dodge the incoming objects' game with python's arcade library. I've managed to get the background to move, but I can't seem to create another. I've been looking at a lot of…
MadTaxi
  • 71
  • 4
2
votes
0 answers

I have been trying to install the Arcade library for python but I keep getting the same error and have no idea how to fix it

my python is ver 3.11 and I want to install the arcade library because I use it in school and want to make my own stuff at home but every time I try the 'pip3 install arcade' command in the command prompt I get an error message: error:…
Avawahwa
  • 21
  • 1
2
votes
1 answer

How to make enemies follow me using arcade module?

I'm working on this game for an assesment in school, but I keep getting the error below. I've done everything I can to fix it, but I'm not very experienced in python so it's hard to figure out what's wrong. File…
riley
  • 53
  • 3
2
votes
1 answer

Mac M1 "No module named 'pymunkoptions' "

When I try to run an arcade file on my MacBook M1 it returns the error ModuleNotFoundError: No module named 'pymunkoptions'. In debugging I noticed that it got called as soon as the code referenced arcade, and that it has to do with the arm64…
2
votes
1 answer

TypeError: get_stream_position() takes 1 positional argument but 2 were given

I have googled a bunch on how to fix this problem, but I'm kind of a beginner and none of the articles were related to python arcade, so I couldn't figure it out. I'm trying to play background music in my game and I tried the python arcade…
qtoq
  • 23
  • 3
2
votes
1 answer

Is there a way I can reset a Python Arcade window class without restarting the whole project?

I have a 2D platformer game in one class I want to re-run so that the level changes when I recall it. I have tried creating an attribute called reset(self) that when called runs the __init__(self) subroutine again but that gives the…
tobyns123
  • 21
  • 1
2
votes
1 answer

Problem in installing update cheetah==2.4.4

I'm trying to install updates from my requirements.txt: pip install -r requirements.txt but when the installing has arrived to cheetah it printed this error: I'm trying to run some updates require by pycharm, so for the update of cheetah I got this…
Moez Ben Rebah
  • 170
  • 1
  • 12
2
votes
0 answers

Python doesn't recognize neither Pygame nor Arcade

I am very new to coding overall, so its more than likely my fault this is happening. I tried to create a pong game using Turtle. The window would open and the background was black, the way I had meant it to be, but my curser would load and my tab…
2
votes
1 answer

How do I reference my window variable in a separate class?

I'm using python's arcade library and I keep getting the "NameError: name 'window' is not defined" error. I tried deleting the main function and just running the window = MyGame() for button in window.buttonList: button.draw() arcade.run()…
1
2 3 4 5 6 7 8