python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Move a rectangle drawn inside a canvas
I am trying to move a rectangle drawn inside a canvas. When I run my code I get an error which basically says 'Canvas.Top' is not a supported property. Any ideas? Thanks in advance.
Here is my code:
&...
Arijit
Votes: 0
Answers: 1
i want to change the location of my sprite when i click.... who to do that?
from numpy import place
import pygame, sys ,random as ran
start = True
ref_x = ran.randint(18,387)
ref_y = ran.randint(18,387)
class Player(pygame.sprite.Sprite):
def __init__(self, pos_x, pos_y)...
thenoober
Votes: 0
Answers: 1
how can i keep backend Data synced with my fronted
I have a "user" class which contains a status attribute, I want to display this attribute in a dashboard.
when the backend changes this attribute I want the frondEnd to display the new value...
mk56852
Votes: 0
Answers: 1
When clearing background, rect moves
So i've used a rect to divide the screen for two different background colours. The code im writing is for a minigame and its supposed to move a bubble up the screen, but when I click my mouse the rect...
Kronixzz
Votes: 0
Answers: 1