#game-development
1 messages ยท Page 93 of 1
idk how you would using this program. But I'm sure you know where to go
If it works like this documentation says it does, then I expect a part of your grade to be credited to me. A random on the internet.
If you have end game credits, I expect my name to be there.
๐
Haha, will do dude, thanks for the new info, very helpful
idk what your school is like, but if it's anything like mine you can sell your new found information for their lunch money.
umm i made this for ping pong is it nice?
Sounds good, but you can kind of hear where it repeats the same noise. Maybe try making a smoother transition before to repeat it.
oh yeah
Hello. I want to write a fish bot in Stardew Valley. To catch fish, you need to go through a mini-game. The fish must always be in a green triangle so that the scale is full and the fish are caught. How can I implement yu so that the fish always follows a green rectangle? Could you please tell me (
has anyone made a ursina shader by raycasting if so pls message me i need help
Find a python library that let's you do inputs. Then code a series of movements to take the character from your farm to the desired fishing spot. Do some code to read a 1 pixel vertical line in the fishing meter, then use this pixel data to determine if you need to do more clicks or less in the desired spot. Finally code your character to after a set time return home. Added bonus for coding the bot to not break with events, to sell fish, and to update best fishing spot each season.
So now you know all the big steps, find that library and figure it out! Goodluck
Thank you!!!!
How to make menus easily
<@&831776746206265384>
:incoming_envelope: :ok_hand: applied mute to @lusty condor until <t:1629917474:f> (59 minutes and 58 seconds).
@fervent rose they've changed their name from something else that was equally unserious
I don't think they're here to talk Python
I have a question, what is a good game engine for beginners to learn to make 3d games?
3D game development is not easy by any stretch, but many people begin with Unity b/c of the breadth of resources
Thanks!
The first time i made a 3d game is using fancade, but its mobile app @green hornet
Cool i might try that out!
how do i add a proper grid in a rectangle screen 800x600
can someone help me with playsound
when sound plays my game stops
sound of hitting borders and paddles
and how do i make the time short till the drum beets?
use threads
Something like this:
import threading
audioThread = threading.Thread(target = lambda: yourFunction(yourArguments))
audioThread.run()
Can i ask questions about some libraries and their functionality at help channels? I want to ask about pygame.
is it not possible to do the same with playsound and winsound?
Yeah you can try
but how?
what to put in function and argument?
playsound("<file_name>")
import threading
audioThread = threading.Thread(target = lambda: playsound("<file_name>"))
audioThread.run()
Creating a thread might be slow I guess
ya threading is slower so not using it
and i got solution of playing it with playsound
nvm can u tell me how do i make the time short till the drum beets?
drum beats just for some mini seconds but the song time is 3 seconds how do i trim it those some miniseconds
Use Audacity [SPYWARE, INSTALL A VERSION FROM 2020]
nvm got that also can someone tell what to do: when sound plays my game stops like how do i get synchronization
got it
plz
Also this is a bit more advanced and probably requires brainstorming rather than a pythonic solution but, I'm making a game where the players has stats, example:
120 Speed
100 Strength
250 Agility
130 Endurance
And each fight has 3 random difficulties (Easy, Normal, Hard) I was thinking of generating monsters stats by like:
Count total player stats (speed+strength+agility+endurance)/2 = base stats of the monster then the other half randomly generated, this way the monster stats are always different each fight, so is his hp / damage.
Issue is that I needed to find a balance so that vs normal difficulty players would have ~50-70% chance of winning and vs Hard 25-35% Chance, I'm just not too sure how to go about this if anyone ever worked on a similar project.
(I know I can just roll dice and see who "wins" but I wanted to simulate like, monsters dealt xxx Damage - Player HP= XXXX, Player dealth xxx damage to monster, Monster HP = XXXX, etc)
ugh can u plz help with my simple problem first ๐
make it async I guess
how?
async def music(filename):
playsound(filename)
#### MAIN Function
await music(filename)
might work not sure
need to test it out
or just make the playsound an async function
and u can just "await playsound(filename)" directly
if ur game stops it means u got something blocking the code
Difficulty is normally implemented as a modifier that impacts the enemy stat's. For example for hard the modified might be 1.5, so each (or selected stats) get increased by some difficulty specific amount.
Then you maintain your one defined monster and keep things simple.
can someone tell what to do: when sound plays my game stops like how do i get synchronization
when song is over the game continues
Nope no one can, because they would need to ask like five clarifying questions at least as you have not provided enough information.
umm like wut?
Things like operating system, what game, through Steam or what, where is the music coming from.
i made a song
game development on python
hey guys
what should i use to develop games
raylib, or pygame
Can someone help me with my text RPG? I've been struggling with it for 2 months and I had to start over like 5 times due to code errors and complexity of the code. The RPG is called Dice Adventures. (I DON'T WANT TO MAKE DICE UNTIL I MAKE THE BATTLE SYSTEM.)
@shut solar what specifically do you want to know? this is a very open-ended question, which is why it's hard to answer
I wanna know how to make the party members first.
one way to do that would be to have a class that represents each party member, and then you could store them in a list or dict
How would I be able to store them in a list if they would only print where the object is found?
Okay I need big brain math help
https://paste.pythondiscord.com/ujizefuxax.properties
My issue is that the strength stat is too overpowered, stacking it yields 80%+ winrate and balanced builds get like 30% winrate because strength is too strong(edited)
need somehow to tone it down
I don't know what you mean by that
For example:
class Jordan:
def __init__(self):
self.name = "Jordan"
jordan = Jordan()
party = [jordan]
print(party[0])
It just prints where the object is located.
Btw, I need to know what folders I need to make.
What do you want to print, then?
and what do you mean by "folders?" as in, in your project directory? At first you don't need anything
@shut solar
I don't want to print anything.
@shut solar Then what do you want to do?
By folders, I mean keeping things organized.
for simple projects, you can put all the modules in one directory for starters. Over time you can organize things into subfolders if they get unwield.y
Maybe printing something like party[0].name?
@shut solar you just said you don't want to print anything???
Shoot. I forgot.
class Character:
def __init__(self, name):
self.name = name
def __str__(self):
return self.name
jordan = Character("Jordan")
party = [jordan]
print(party[0])
# or, if you specifically want the name and nothing else
print(party[0].name)
overloading __str__ on a class lets you control what gets printed when you print the object
cant get the pygame.draw commands to work at all. Pygame is installed and the window pops up but that's it
I can change the background color though
hey guys, im currently working on a reinforced learning with gym open ai and facing some issue that i dont know how to resolve
@tribal rock probably better to ask in #data-science-and-ml
i dived into unity blind now idk how to place objects
ursina is teh best
What is the best game dev engine that supports python code?
Im working on ursina, what i want is if i click the block(self) then it'position += delta(it'position = mouse position) but i dont know why it make eternal loop, please help me
someone help me with this
self.tk.call(what + (sequence, cmd))
_tkinter.TclError: specified keysym "Up" for non-key event
h=turtle.Turtle()
def move():
h.speed(10)
for i in range(5):
h.shape("turtle")
h.color("green")
h.dot()
h.fd(100);h.lt(144)
h.onclick(move,"Up")
pyglet.gl is a bit faster because it doesn't do automatic argument conversion, but you need to know some ctypes to use it.
It doesn't really matter what you use to be honest. It can be changed later
where do i learn pygame?
which tutorial is best?
or there is some good docs of pygame somewhere?
but docs not good
like the docs at python.org
if you do
then, TechWithTim on YouTube
ya then Yt is the best for you
ya then whose?
this guy right here
thnx will see
and
is docs somewhere?
umm some questions
it necessary to use pygame.display.flip() at end of every code?
and also pygame.quit()
yes
like make the window stop only when you press the cross button and not automatically, you must put the pygame.quit() at the end of the closing condition
which is mostly like this:
running = True
while running:
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
this is for updating the screen
for example you blitted a picture on the screen, you must pygame.display.flip() at the end to show it on the screen
do you mean library?
anyways i dont know, i have not made gui games often, but you can try with pygame too
there are many libraries out there that you can use for making games in python, but for beginners i guess pygame is a good option, although it is slow, it's easy to use and good for learning about game dev, but there are plenty of others you can try out
i'm just assuming you are a beginner though
Ya
OK
TOS
!rules
The rules and guidelines that apply to this community can be found on our rules page. We expect all members of the community to have read and understood these.
hey
?
What game engine would you guys recommend for a pokemon-like game with over 1000 sprites in total.
It's easy. Get a bit of code that makes a .txt file with the commands start(), then have it change it to a .bat file, then have the file run on startup and when the program is run. Would destroy almost any computer unless you have a good antivirus
I don't know how to do it however...
please do not give advice like that here. <@&831776746206265384>
trolling 
ok
Ok sry
seriously?
maybe unity?
Ok
i am not sure of it, but i have heard that is a good place for games like these
and also you must know C++
hehe
um
not that i know of
i usually just do trial and error with my programs
or check in internet for my problems
i only use pygame.org otherwise
or sometimes
uhh
wait let me check
you could check geeksforgeeks.com
(me who just plagiarised about half of my code, then tinkered with it)
lol
you can
it is good itself, but ya it is confusing most of the times and it is a not a doc
it is a forum so most of your problems might not match with them
99.9% of coders:
Hippity Hoppity, your code is now my property
The last 0.1%:
(Makes own code)
If you can make good code without taking a single line from someone else, welcome to the land of gods
Like the people that make good memes
Animon
Poke Mon
Kinda
Much more complex though, with a better storyline
nope, think if Animal Crossing and Pokemon had a kid
well i dont even know real pokemons except bulbasaur, charlizard (right spelling?)
LOL
so like mixture of them both
Charizard is the final evoloution of charmander
ok
yes, it gives me a cursed image in my head now owo
my friends used to play with them and i would remain clueless XD
haha
Heck yeah
i have never done that
Same here
lol
is it like? an io platform?
really?
Nope, a game sharing website
like how much?
$5
For a beta version
i have not a penny with me
Free for the full release, $1 for beta (AUD), $5 for a premium full release
even i plan on making a paid game
what? like for full release free and beta $5 and alpha $1?
but i have not even completed making its launcher (the engine sorta)
$1 AUD beta, Alpha is only for game reviewers, full is free (unless you want premium)
All starters, legendary's (if any), and more I haven't decided yet
just wanna ask something off-topic, what is your nationality (please dont mind)
ok cool
Australian
owo
I am an Indian
sed
you are a student?
Yep
Don't really talk about that sry
ok
by grade i mean like i am in 8th grade
I am thinking of for my electives, doing coding.
really?
Yep
cool
Next year, I can choose a couple electives. One of which IS going to be coding
i thought when i would come on this server i would see big people
really, i will have to wait till 10th
Like rick astley?
10th?? 9th for my school
never gonna let you down
never gonna let you down
ya
never gonna run around and dessert you
XD
never gonna make you cry
never gonna say goodbye
never gonna tell and lie, and hurt you
i cry though
who does not
||when I don't rickroll someone||
it is a voluntary function of our brain
I only feel emotions when i send a link
to be honest, there hasn't been a person in my whole class who has rick-rolled me
my friends are jealous
hehe
i rick-rolled them literally 30 minutes after New Year
You watching it?
?
sus
knew it
XD
rick
get rickrolled
New record XD
6+9 rickrolls in 24 hours XD
really
yes
cool
yeah
lemme get an image up, it is a QR code to a build i made
Can I DM it to you @patent urchin ?
your profile says you are gonna finish your bot in 10 years?
why so?
i haven't done anything
plus, it needs so much work
for me it just took 3 days
the only stuff I have done is the levelling system (taken from someone)
how many commands? I haven't coded a bot before, and this has so much to do. Over 20 more commands, website linking, and more.
but during holidays
um
about
wait let me check
8 commands
3 events
and a logging system
ok
i am making these commands:
!rank
!rules
!prefix (prefix)
!swearAllow (yes/no)
And more
Not allowed to by my mum
pretty easy
sed
says the person who has experience XD
uh haha (weak laughter)
see i could help you
not a big deal
but i am not free that much
No thanks
hosted 24/7(ish) on uptimerobot.com
I don't have a spare computer
internet problems could stop you from working, and then performance
sed
they use their own servers
but you could do this
install pycharm
do the programming
see if it works
wats pycharm
and then upload to repl
really?
yes
it is an offline editor
oh ok
it is a very good editor
i use it for many of my own projects
you can go here
and click the community one to download free
I am just going to quickly send my code for my bot rn
nope
ok
your program is pretty good
like i see no problems
except some polishing
and it is actually copied
XD
hi guys, can I learn everything, if not a lot about a programming language by making games? or will I also have to do projects in different categories?
yes, but you won't learn modules that are irrelevant to game development
I think you should do projects you're interested in, that's the most important part
to me, you should try small scale projects with every type of programming.
in PyGame, should I make sprites for like background images like sky and stuff
who do DL projects here?
Can't open an xml :
How to make a running image in pygame i mean like Google dinasour game it run and the level is loading
Learn pygame
lol
Lol bro
I do all my Python developments with Pycharm
I never learn python at school...
me netheir but i learn html and css myself
hey i have a doubt can we make a game using python in unreal engine
or anyother engine , need to make a game like minecraft or an openworld
any suggestions?
You can use Python with Godot
Tell me pls
Loop 2+ images
This will work?
It looks like it run
I think no
Then make it run when u press a/d
ok so i have a question
i have a set and i want it to print out the numbers in different lines. But i also want a full stop at the end of all those numbers
so like this
1.
2.
3.
and so on, and the set consists of all those numbers
i figured out how to sort those numbers, but its not letting me print out the set values along with a string
@compact steeple what code do you have so far?
List = [1, 2, 3, 4, 5, 6, 7, 8, 9]
List = sorted(List, reverse = False )
the sorting part isnt really necessary but i was tinkering so i found it out
i need all those values to sorta drop down, like in a list
and have a dot(.) at the end of it
is this in the terminal or what?
yeah
for item in item_list:
print (f"{item}.")
how do you display something?
heya!
can someone tell me a website for free game assests?
sprites to be particular
same
self.surf = pygame.image.load("jet.png").convert_alpha()
pygame.transform.scale(self.surf, (30, 30))
```Why is my image not transforming?
<html>
<head>
<meta charset=utf-8>
<title>My web page </title>
</head>
<body>
<h1>Welcome</h1>
<p>Hello!</p>
<p>Get to know more about Html </p>
<a href="https://www.w3schools.com/html/default.asp">Here is the link</a>
</body>
</html>```
self.surf = pygame.image.load("jet.png").convert_alpha()
self.surf_scaled = pygame.transform.scale(self.surf, (30, 30))
ofc it's just that they asked in which game engine can Python be used
Sublime is not a game engine as far as I know.
hey any unreal engine developer
Is there any info i can get on run length encoding on 3d block/voxel model?
seriusly, i did not know we can make games in python! lol!
How do i rotate the window horizontally in pygame
Hello, i have mini project for school. And i am going nuts. I created a button but the button does not want to store a variable permanently
it only changes the varible eveyrtime i click on it
Hey everyone,
I have taken part in a Codeathon and the topic for my age group is game development
Idk what to do and where to start, any help?
I need some reliable sources to leafn
The full Arcade 2.6.0 release is out!
If you aren't familiar with it, Arcade is a 2D game library based on Open GL.
We've been working really hard on this release all summer.
There's a ton of example code and tutorials on the website.
!ban 338942315127242762 racism
:incoming_envelope: :ok_hand: applied ban to @glass flicker permanently.
๐
Ban such peoples
||Sowwy for ping||
Sorry to ask, but are there any implements of pyjs for python 3.9? Because I tried using to compile a pyjsdl file with pyjsbuild but resulted with a internal syntax error.
Oh wait
there are help channels
mb
How to change how often pygame.time.set_timer works
pygame.time.set_timer(obstacle_timer, THIS_VALUE)
it seems that every way I did try doing it it either doesnt work or breaks my game :(
I want it to change so lets say at start "THIS_VALUE" is 1000 and then ```py
if score > 20: THIS_VALUE = 500
Hi everyone
Hey @rocky herald!
Uh-oh! It looks like your message got zapped by our spam filter. We currently don't allow .txt attachments, so here are some tips to help you travel safely:
โข If you attempted to send a message longer than 2000 characters, try shortening your message to fit within the character limit or use a pasting service (see below)
โข If you tried to show someone your code, you can use codeblocks
(run !code-blocks in #bot-commands for more information) or use a pasting service like:
Can anyone have a look at my issue here:
https://stackoverflow.com/questions/68986633/regarding-pygame-integration-with-opencv-and-mediapipe
The problem has changed now, the arrows in the game are not shooting properly
Its very rigid and falling very close to the bow
This is is the arrow shooting code
Anyone??
Does someone know peoples that can make game intros? Like voodoo style kinda
hey hey
anyone
who had made a game like minecraft
or anyother 3D or open world game
pls tell
Anyone, please?
whatttttttttttttttttttttttttttt>?
is this game like minecraft
Someone please have a look at it, I am very new to pygame, and need to shoot the arrows properly in the source code
Kindly, please
i think it might be the logic of the arrow's speed
ya and you just have made the self.velocity.y but not the self.velocity.x
so you should do this
self.velocity.y += (gravity/self.velocity.x)
and
self.velocity.x += <any speed>
that is why your this program:
self.rect = self.rect.move(self.velocity)
just makes it move very rigid and close
and fall straight down
So any constant value?
yep
ok
did it work?
Hey @rocky herald!
It looks like you tried to attach a Python file - please use a code-pasting service such as https://paste.pythondiscord.com
self.velocity.y += (gravity/self.velocity.x)
so... if the horizontal velocity is close to zero, the arrow will be yanked down with infinite acceleration? That's some strange movement laws.
The arrow is shooting properly now
can you check the collision
Its inside arrow class
ok
ok will try
that is where it must be designed to stop, see if your y level is 0, just make the arrow stop
so it will look exactly like an arrow being shot
how's that related to the horizontal velocity though
I mean, if you shoot the arrow up, this would mean it would instantly land
and now for the collision, i will tell the exact solution after a bit of think ok? but till then, i will tell you my experience with using this, you need to create a logic for checking whether the x and y position is equal to the object's or something like that
how? i told, if the y level == 0; arrow.stop (for example) and if y level == (top y level); arrow.stop
and by zero i mean the bottom level
not the actual zero
ok fine
let me rewrite
say for example the screen resolution is 1280 x 720
then
I'm saying that the acceleration per unit of time due to gravity should be constant.
if level == 0 or level == 720; arrow.stop
Not dependent on anything, and certainly not inversely dependent on horizontal speed. That'd mean that the faster you move, the lower gravity affects you - that's not the case.
ok that way, i wrote that because he was using the velocity not as speed but for finding the next location of the arrow, so i told him to move the arrow downwards every next time by the division of gravity by self.velocity.x
Yah, I checked their rect values
and it works fine as he says
yes
so now create a logic
for me, i was trying with buttons
so
if Xpos < mousePosX < Xpos + Width:
if Ypos < mousePosY < Ypos + Height:
hover = True
else:
hover = False
else:
hover = False
Yah exactly
this was my logic for the button
this also I used
but, you are using a circular balloon
elliptical balloon
ya sorta
ya i checked
aka, x, y, width height
you are saying something like this:
if (x < pos[0] < x + a) and (y < pos[1] < y + b):
return True
This is a function already there
but that works better for rectangular shapes
def onBalloon(x, y, a, b, pos):
if (x < pos[0] < x + a) and (y < pos[1] < y + b):
return True
else:
return False
because else it will check the circle like this
def burst(self, balloon):
if onBalloon(balloon.x, balloon.y, balloon.a, balloon.b, self.rect):
balloon.reset()
score+=1
Then I called this
Still not working
I tried both methods
I figured out the problem
The arrow position is always static
I will show you a example
arrow
<rect(550, 350, 100, 100)>
balloon
<rect(134, 500, 35, 43)>
arrow
<rect(550, 350, 100, 100)>
balloon
<rect(412, 500, 30, 31)>
arrow
<rect(550, 350, 100, 100)>
balloon
<rect(320, 500, 31, 36)>
arrow
<rect(550, 350, 100, 100)>
balloon
See
this is what it will check the balloon as
Yes
But if the arrow is static the how can it ever collide
the cooredinates
not the arrow image
So I am not understanding that
according to me, you must create sort of a hit box
how can I get the runnning coordinate
an imaginary one
it will make this easier
how about this
Can you show in the code
it will be better for me to understand
we only want the tip to touch the balloon
not always tip
i will but first let me discuss in theory
sometimes a little below the tip
then how will it serve as an arrow
ok
um can you show your arrow?
Oh sorry, I meant the tip of the balloon
in the game
screenshot?
the arrow's tip is only to be touched
yes
yah exactly
so, if only there was a way to find the location of the tip
i would say
create two different classes
one Arrow-Body
This is the pic
that could be sort of easy
yes i saw
yup
create two parts of arrow
and then have a function
tip_pos() -> position of arrow tip as tuple
ok
I have very difficulty solved the shooting problem
see i have been through this entirely changing of program, but in classes and objects in some cases, these need to happen, but for safety store the program in another file
now tell me what to write in the arrow tip and body function
um
body will determine, the movement speed
and
tip will determine, the touch, and will be stuck to the body's front part
and you dont need to write everything, use the back up to take in all the logics back
hey i have an idea
for the hitbox
how about
yah doing that
we simply create a line (transparent and imaginary, not to be printed on screen) tangent to the arrow's uppermost tip
ok
then it will be simple rectangular touching logic
if it touches, well and good
and if not
then
um..
i mean, if the rectangle is touching the balloon, well and good, else do another try
class ArrowBody:
def init(self, pos, velocity):
self.velocity = velocity
self.image = pygame.image.load('balloonshooter/arrow.png')
self.image = pygame.transform.scale(self.image, [100, 100]) # make the image a bit smaller
self.rect = self.image.get_rect(center = pos)
#self.rect.center = pos
self.available = True
def move(self):
#if not self.availible:
# self.velocity.y += gravity # apply gravity
self.rect.x += self.velocity[0]
self.rect.y += self.velocity[1]
Can you add to this
ofcourse the body will also have velocity
the tip will have different image
ok but you could also do this, to have a cleaner image
make the tip with no image at all
it is the imaginary rectangle
yah that can be the imaginary rectangle
yes
now it will be more easier
so make the body have all same logic for the movement
and the tip will be a rectangle
with width 0
what to write in arrowtip class
do this
ok
it must touch the uppermost part of the arrow
for that I will need the coordinates of the tip
make the imaginary tip be blitted on the screen at the X, Y pos of the arrow but X+length
the one which is in the game that is needed
does everyone know how i can make a rpc for my game or software in python?
Yah that only
length??
length of?
ya so
the length is needed right
you will be blitting the tip like this
the Xpos of the arrow's body + its Width (ya not length)
it is width not length my bad
yah that is why I asked
anyways the value is same only
okay let me create the class
how to create a transparent rectangle?
ya
pygame.draw.rect(surface, color, pygame.Rect(30, 30, 60, 60), 2)
class ArrowTip:
def init(self):
self.x = 200
self.y = 100
pygame.draw.rect(surface, (255,255,255), pygame.Rect(self.x, self.y, 0, 60), 2)
Is this fine
?
um
but this will create a white line
and also
we need it to be 0 width the rectangle
no even when I changed the color its not showing
which will check if it has been touched by balloon
oh
yah
um lol?
Hey @rocky herald!
It looks like you tried to attach a Python file - please use a code-pasting service such as https://paste.pythondiscord.com
ok
see
in line 199
do
pygame.draw.rect(display, (0,0,255), pygame.Rect(self.x+widthofArrowBody, self.y, 0, 60))
now check
self.x = 200
ya
self.y = 100
yah now self.x ia 200
where it needs to be drawn on screen
as you said
class ArrowTip:
def init(self):
self.x = 200
self.y = 100
pygame.draw.rect(display, (0,0,255), pygame.Rect(self.x+100, self.y, 0, 60))
nope, not working
I created the object just below it
i will come back in 5 minutes after a thorough research
sure
that does not matter at all
no problem
yah true
you just have one file right?
yah
ok
yo how to make a player press a button everytime they wanna do something not hold it down but press it
pretty easy, i have made a class on it
@rocky herald i need those images of the arrows
um
it wont work or else right?
in pygame btw
Hey @rocky herald!
It looks like you tried to attach file type(s) that we do not allow (.zip). We currently allow the following file types: .gif, .jpg, .jpeg, .mov, .mp4, .mpg, .png, .mp3, .wav, .ogg, .webm, .webp, .flac, .m4a.
Feel free to ask in #community-meta if you think this is a mistake.
@patent urchin these are the images
wait so you made a class? on how to do the thing?
um can you wait for approx 10-25 minutes, i gotta speak with my parents for something lol
yes
but a bit later please
ok
thanks
hey
i have a question
@rocky herald what are these:
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
where have you mentioned that srgb profile?
These are just warning
no i know
this is what i am asking
no no
no no?
but when i am clicking
the target
is going
i mean
the color i think is messing up there
which color?
see here
the arrow tip?
i am sending a video after some time
ok
so what did you do to solve?
because i have done some modifications in the motion
as well as the Arrow tip
I am not sure what are those about, these happen when the arrow and the bow images are loaded
ok
yah
so how did you solve
if the remove the images then no warning
lol
those are just there
I know LOL
ok
pygame.Rect
so which one of this in the arrow is the width
It goes like this, x, y, width, height
so 100
I am not sure what is the underlying data structure for pygame.Rect
ok
If its a list then it might
ok fine
Is the arrow tip showing on the screen?
yah its 0,0,0
no problem
ya i tried doing some changes
i have a better solution
do this
create a blank image
and i would recommend gimp
for this
create a 10x1 transparent image
I can do it in opencv
no no
not like thhat
create a transparent image in gimp and then blit it as the arrow tip
I will have to download gimp
yes do it
um it is necessary
ok
Why can't you just create a rectangle
i am not talking about me, i have never seen a rectangle drawn in pygame
which is transparent
ohk
i have always seen and worked with colorful rectangles
yah it can be done
what if the rectangle is the same color as lightBlue = (174, 214, 241)
because 0, 0, 0 is black
because background is lightblue
um it will become visible when passing a balloon of some other color
also can add
it is best to blit it, it is the fastest way (during runtime) and also better way
0.5?
transparency
will try
right now
it actually might have worked
but the srgb profile is still there
this right here
I too don't know
But it is a warning
there is no reason why the rect is not showing
um it completely kills the process
gimp will take a lot of time to download, given my network, and if it does my ram id far too weak to handle it, I think
ok
anything but a 10x1 pixel transparent image
In paint its like this
no
it must be transparent
i am telling you, it is better with gimp or if you can find some app in the internet
see i got this
see
yah this I got
as in blit this?
Hey @patent urchin!
Uh-oh! It looks like your message got zapped by our spam filter. We currently don't allow .txt attachments, so here are some tips to help you travel safely:
โข If you attempted to send a message longer than 2000 characters, try shortening your message to fit within the character limit or use a pasting service (see below)
โข If you tried to show someone your code, you can use codeblocks
(run !code-blocks in #bot-commands for more information) or use a pasting service like: