Cran

Members
  • Content Count

    20
  • Joined

  • Last visited

  1. Thanks! That seems obvious now, but I had no idea how to add that, the first method should work for me, the dist folder has 3 files in it though, i assume those need to stay together in a folder so they can reference each other?
  2. You said setting app.stage.scale to width/1080, that would help with the issue, but wouldn’t that change the size of the application, Or would that stay the same? what I mean is will the program be smaller than the window, I think I understand but I want to check
  3. I am new to pixi and I can't seem to find any tutorials of how to install pixi - layers, there are pieces of what i need to do, in the main file the dist folder containing the compressed files, and running npm i pixi-layers, but i don't know how to set up the files so that command will run, i also think i may need an import command in my script, but i don't know the syntax i would need. Sorry this is a really silly question but I can't seem to find a way to set this up, even if there was a video or tutorial that explains this that would be awesome.
  4. I'm really new to PIXI.js and programming in general, I want my programs to work well on multiple screen sizes, but it gets annoying to type out width/8 or width/3*2 as coordinate values. This is the only way I ever though pf to do something like this but I'm sure there has to be a more efficient way, i tried making a function to simplify things, but it doesn't help much, i didn't want to use straight up numbers for coordinates, so i made a function that would take a number from 0 to 1000 and turn it into a value for the screen size, (0 being 0 and 1000 being the width or height of the screen) but then 1 on the height setting is not 1 on the width, and I just got more confused, is there an easier way to do this sort of thing?
  5. I tried what you said about running http-server -c-1 in command line of the directory I wanted to show, but I couldn't use the cd url command to browse to my index.html because it said directory was invalid, so nothing really happened. Thanks for the help! I think I just got an incomplete or outdated tutorial when I first set up Pixi, so this is really helping me out.
  6. Ok so I was playing around and while the spritesheet was fixed, now I can't display text, I think this is an issue with the file I'm running out of, as it has been glitchy the entire time I've used it. As I understand it node.js can run a server for pixi, but I don't really understand how to connect the two. as it stands now I have a node.js program making an http server on 3000, so I just need to look up how to run an html file on a certain port? if that makes sense?
  7. Im actually starting to think just having node installed fixed it, because I don't think the code is breaking when the server is stopping
  8. also I am curious if I can turn it off when I am done with it and how, this is the code in the node file const http = require('http') const port = 3000 const requestHandler = (request, response) => { console.log(request.url) response.end('Hello Node.js Server!') } const server = http.createServer(requestHandler) server.listen(port, (err) => { if (err) { return console.log('something bad happened', err) } console.log(`server is listening on ${port}`) })
  9. Thank you! I think that was all I needed, once I got node running everything seems to be working on its own, the animation is running no issues, however i didn't have to tell the program to use the port I ran a server on (3000) does that mean it just found it on its own or is that something I may have to input myself in the future?
  10. In specific, I don't know what it means by this Once you install it, you can use a very simple CLI API that you can interact with: after this it gives me commands like before, but I don't know where they are supposed to go, I tried the terminal but I guess it means something else, like atom or a different editor, or in my project, but I have no idea how to do that or where. Sorry this is my first big language, I started with processing, so I'm a bit clueless.
  11. I found a tutorial to try and find this but it keeps referencing things I don't understand, https://blog.risingstack.com/node-hero-tutorial-getting-started-with-node-js/
  12. This sounds promising, but as I said, I'm really new to this, I don't see a download and I don't know what to do with the text in that link, If it is pretty simple where I use this, or if you could steer me toward a tutorial, that would be awesome, thanks!
  13. I'm running the localhost link off of chrome if that's important
  14. locally I have internet information services set up so I can run the file from wwwroot, I don't know if there is a name for that or if that explains it. also, sorry I couldn't get the files on here until now, my other computer was not behavingIt's Sweater Weather.zip