Questions tagged [arcade]

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

Reference:

Documentation:

110 questions
1
vote
1 answer

Extend Python Arcade with new serial device

I am building a new input device for gaming and home automation purposes and would like to use python arcade (https://arcade.academy) for a demo. Arcade supports reading input from keyboard or mouse and I would like to extend this functionality for…
dan_0
  • 599
  • 1
  • 5
  • 17
1
vote
0 answers

Python Arcade: TypeError: "Chunk" object is not iterable

As a small project I wanna continue working on, I decided to create a simple platformer following the guide from here: https://arcade.academy/examples/platform_tutorial/index.html# Everything works up to the point where I have to add a code to draw…
MatejR
  • 76
  • 9
1
vote
1 answer

What are the font names for the arcade python library?

I am new to arcade (and python), I'm trying to get some text to be in the Comic Sans MS font but my text shows up as the default font. Here's the line of code for the text : arcade.draw_text("test", 138, 492, (250, 250, 250), 58, font_name='Comic…
splits
  • 11
  • 2
1
vote
1 answer

How to change the content of text in an Arcade window?

I am currently trying to create a text that can be updated whenever I hit a button. After going through the documentation, I saw the arcade.draw_text function is returning a text_sprite object, but it seems unable to change the text of that…
windsound
  • 706
  • 4
  • 9
  • 31
1
vote
0 answers

Is it possible to make a game that can scroll and aim at a same time?

I've been trying to make a game with Python Arcade Library and I got the scrolling and aiming function ready, but for some reason, while I'm scrolling, the crosshair that's following the mouse suddenly stops and it cannot go over that point. Also,…
jun2040
  • 37
  • 6
1
vote
1 answer

Can't get attack animation to work for arcade library with python

I'm using a tutorial from arcade.academy and the game runs fine so far (a guy walking around collecting coins and scoring points) but I want to have an attack animation occur when the user presses Q so I can turn some of the coins into enemies and…
1
vote
1 answer

How do I make the enemy float around randomly?

I have pretty much everything done for this little game except I can't seem to get the enemy to just aimlessly float around. They spawn at the top of the window but it's rather bland having them stand in line Civil War style. I'm pretty sure it's…
1
vote
2 answers

No Module named arcade

For class I am using python arcade. I installed it with pip install arcade. When I attempt to import it with import arcade it pops up ModuleNotFoundError: No module named 'arcade'. Ive uninstalled and reinstalled arcade. It shows up when I enter…
1
vote
1 answer

AttributeError when running open_window command from the Python Arcade module

I just installed Python 3 and the arcade module on my MacBook and am trying to follow a simple Hello World tutorial: https://opensource.com/article/18/4/easy-2d-game-creation-python-and-arcade Importing arcade works, but as soon as I put add the…
DK2AX
  • 265
  • 5
  • 16
1
vote
1 answer

Python arcade; how to add enemies

So I get this error message when running the program. Traceback (most recent call last): File "C:\Users\GUESS\OneDrive\Desktop\Computer Science\Game\Changable.py", line 229, in mainWindow.setup() File…
Sam Ball
  • 11
  • 2
1
vote
1 answer

Framerate issues with Arcade

So I'm making a platformer 2D game with Arcade, and for some reason, my game always goes ~30 FPS instead of going 60 FPS. Not only that, when I press the left arrow key to move my character to the left, it goes down to ~4 FPS. Code for my movement…
user10125117
1
vote
2 answers

Creating stable image Python Arcade

I am trying to write a program using the Python Arcade library where the user presses the spacebar causing a red circle to appear on the screen. However, whenever I press the spacebar, the image will appear, but it will flicker very rapidly, as if…
0
votes
0 answers

Struggling to identify a bug in my python arcade program

This is my first time posting on this site, but I have been a lurker for about a year now. Back story: I'm struggling with a confusing bug in a program meant to simulate a variation on the game of chess. I had to write this program as a final…
0
votes
1 answer

Running code in Visual Studio Code vs. command line (incompatible file extensions)

I have been developing an application using Visual Studio Code and running it via Visual Studio Code's built-in terminal. My application uses texture loading via the arcade library. Example: texture_a = arcade.load_texture("Version…
Wills
  • 40
  • 8
0
votes
1 answer

Read Tiled Map object properties with python arcade library

i am making a platformer game with python arcade and Tiled Map Editor but i havent find a way i can access object custom attributes i loaded tiled map like this: self.tile_map = arcade.load_tilemap("TiledMap.json", scaling=1) and i tried access…
maygon
  • 57
  • 18