SoldjahBoy's Recent Forum Activity

  • Yeah, I have no idea what would be causing that or what the solution would be... maybe you need to have some code in the website itself to either change the URL of the iframe when it's closed to something that has no sound (like google.com) or some other method for muting the sound on the page (some javascript maybe?)

    Does this problem happen in all browsers? Maybe it's a browser specific issue?

    ~Sol

  • Yep I do a similar thing with zordering...

    If the "rotation" of any of my characters changes, it triggers the zorder function. When I had it running all the time, the impact on fps was horrible. My game went from having 100 characters at 60fps to having 10 characters at 15fps... making zorder only trigger when it's needed really sped things up as well.

    ~Sol

  • Awesome stuff, no problem

    ~Sol

  • mikehive

    Thanks for the feedback The reason he must be clicked first, is that the player will be in control of several characters - think along the lines of any RTS game where the player must first select the unit they want to give orders to, then issue a move/attack command.

    The control scheme will be made far more obvious later on, after I have finished adding core mechanics to the game - I will make a short "tutorial" sequence to get the player started.

    Characters will also have a certain level of autonomous behaviour as well, so they will also do things on their own to a certain extent (like eating food if they get hungry and food is available, or sleeping if they get tired, etc) but primarily the player will "order" them to complete tasks by selecting them first and then issuing a command.

    My next step is actually to get the world map generating locations, then working on how I'm going to save and load data from said locations onto the game screen for the player to interact with. Still a long road ahead before any real "game" happens.

    ~Sol

  • Hi Usman, sorry I have been super busy with work. I will make something for you as soon as possible, or I will at least try. I'm not 100% sure my idea will work but I think it should.

    *EDIT*

    Did you need the sprites to travel left AND right or just one direction only?

    ~Sol

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I turned off collisions for my weather effect "paricle" objects because they aren't needed... and CPU usage dropped from 15% to about 8% when the weather is coming in "heavy".

    Having un-needed collision checks does seem to make a difference, especially when there's a lot of them happening.

    ~Sol

  • Make a sprite object and call it "camera".

    Make two global variables, one called "CameraX" and the other called "CameraY"

    On mouse click

    --- Set "camerax.variable" to Mouse.X

    --- Set "cameray.variable" to Mouse.Y

    Every tick

    --- Scroll to object "camera"

    --- Set camera.x to lerp(camera.x,camerax.variable,1-0.2^dt)

    --- Set camera.y to lerp(camera.y,cameray.variable,1-0.2^dt)

    (You can change the 0.2 in the end part to make it scroll faster or slower - 0.1 is faster 0.9 is slower - the number must be between 0 and 1)

    You can also set the camera to be opacity 0 so you can't see it.

    ~Sol

  • Thanks

    I'm hoping to be able to sit down over the next day or two (if work doesn't keep bugging me) and start adding in the basics of map/world generation.

    I'm still thinking about how I want it to work exactly - I have a few options depending on how I want the player to be able to re-locate their "base" on the world map, but it looks like I'm going to have to dive head-first into NWJS data handling (even though I was trying to build the game without it at all) if I want maximum flexibility.

    I feel like I can still build the game without having to commit custom save data, but then the player will be stuck at "layout 1" for their base and I really don't want that.

    ~Sol

  • You do not have permission to view this post

  • I'm still like, what?

    http://www.zdnet.com/article/say-hello-to-the-worlds-first-1000-core-chip-that-runs-off-an-aa-battery/

    Technological singularity, here we come! I can't wait for it to start thinking for itself then try to kill us all... lol

    ~Sol

  • You do not have permission to view this post

  • You can make him "slide" how you want if you move him using something like this:

    on collision with enemy -> set X position to lerp(current.x,current.x+10,1-0.2^dt) (or do -10 for the opposite way)

    ~Sol

SoldjahBoy's avatar

SoldjahBoy

Member since 2 Apr, 2008

Twitter
SoldjahBoy has 3 followers

Trophy Case

  • 16-Year Club
  • Email Verified

Progress

17/44
How to earn trophies