jobel's Recent Forum Activity

  • is this something I could use stationary outside the layout view to light my sprites? I have a top-down space shooter and I would like to simulate light coming from a nearby star. thanks..

  • I tried couple of techniques. Once layout starts , I run a crawler from center of the layout. There problems with overlapping already spawned tiles, even thought they are set up correctly. Another technique was to generate floor first, then do offset calculation, and move everything so that whole map is placed tile away from 0,0. Then for each floor, i set up a value in 2d array. Then did applying of wall and other objects on to the array itself. It worked, as far as remember until something happened that made it broken and I couldn't figure out what.

    yeah I'd have to see it, any chance you can make a minimal test capx just showing what you are trying to do?

  • I still don't understand if created object through create or spawn is calculated same tick of not? I'm working on randomly generated map, and this is somewhat crucial i think as currently I'm getting some minor annoying bugs.

    I randomly generate the world map in my game as well. Although I only do it once at the beginning of the game. I do all the Creates/Spawns in OnStartOfLayout, then I refer to those objects in the main game loop. Do you have a similar set up?

  • - When "repeat" and it has variable to check then add to the same variable, is it only checking that variable on each repeat or only on start of the loop?

    I think a Repeat only happens once in a tick. I think it's only a shortcut instead of you having to copy & paste the actions you want repeated.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • the way I understand it is each tick (@ 60fps) has the potential to be executed up to 16ms after one another. But it's usually a lot less. the actual time varies from program to program and computer to computer.

    If you add 1 to a variable every tick, by the time you get to 6... approx 0.1 seconds of wall clock time will have passed. (this will vary a tad). You could use dt to make it more consistent between computers.

    if you are changing things in subevents I think they are done at the "end of the sheet", so you have to wait for the next tick for the results to update in the next top level event. Maybe this is causing a problem for you?

    EDIT: meant to say tick instead of Action on the first line

  • first, comment your code.. this is not easy to look at.. you'll be doing yourself a favor when you don't look at it for a few months and return to it.

    that Wait could be a problem since it's executing the wait and in that time the player might move out of range and then the max is then set to 130.

    I would think about using distance() instead of X +/- might be easier to do.

    sidenote: you should do less than or equal to 100, since the way you have it, the value 100 is not being represented at all. Your character is probably moving all over the place but technically you might want to cover 100. If some how the distance is 100 and player and sluggo are stationary.. no code will be executed.

  • here's an inventory.capx that I downloaded from someone.. (not sure who)

    https://dl.dropboxusercontent.com/u/362 ... ntory.capx

  • I have 1,900 Events in my game right now and I have very good performance even on lower end (modern) computers.

    Of course all the events are not running all the time, I think that's key.

  • You do not have permission to view this post

  • no worries, I could sense it was something easy... if there was a real problem/bug these boards would be lit up about it..

  • I can't view the capx, it's no longer there.

    but your game has no sound for me.. in Chrome or Firefox.

  • I don't think cocoon.js is still supported... I don't use it myself.. but you may want to look into it..

jobel's avatar

jobel

Member since 27 Jul, 2013

Twitter
jobel has 8 followers

Connect with jobel

Trophy Case

  • 11-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • x4
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

18/44
How to earn trophies