Ask coding questions

← Back to all posts
How to post images in Javascript canvas?
h
codeitfast

I had an image in this game that I was making. However, I now am not able to post an image for some reason. I am VERYYYY new, so can someone help me please?

Answered by Bookie0 [earned 5 cycles]
View Answer
Voters
codeitfast
Comments
hotnewtop
Bookie0

Try this out.

Good luck! :D

codeitfast

@Bookie0 I haven't read it yet, but I think I need to use one that doesn't have an html canvas because my code doesn't have one but it somehow works. Thanks, though!

codeitfast

@Bookie0 Actually, nevermind! It now works fine. Thank you SOOO much!

codeitfast

@Bookie0 what are cycles?

Bookie0

@codeitfast no problem, glad it helps!

Bookie0

@codeitfast kinda like internet points. you get 1 cycle when someone upvotes ur comment/post or when someone accepts your answer as correct (like here) :)

[deleted]

Have a look at this game I made. It involves drawing images on a canvas, and also other game logic that may help you with yours: https://replit.com/@malvoliothegood/Click-the-banana-game#script.js