Volbyte's Forum Posts

  • Don't have too much knowledge in this area but have you checked out the Javascript SDK?

    https://www.scirra.com/manual/15/sdk

  • If I understood you correctly, put the objects you want in a family and make "Village" a variable for that family. After that use System->Pick Random Instance

    EDIT:

    Just noticed you don't have a license for the full version so I think you can't use families. In this case, try something like this:

    Local number = x

    Set Local number to round(random(x))

    Local number= 0

    System-> Pick Random Instance (object 1)

    Local number= 1

    System-> Pick Random Instance (object 2)

    Local number=2

    System-> Pick Random Instance (object 3)

  • Problem Description

    Loading layouts with a 2048x2048 Tilemap in them causes Unresponsive script error (tilemap_plugin.js or glwrap.js) in Firefox and noticeable delay in other browsers (Chrome/Edge/IE). Game will eventually run on Firefox as well if the script is continued despite warnings. Changing the source image did not affect the issue.

    This issue also persists after the project has been exported and my friend reported the same error when playing my game on Firefox.

    I thought there might be something wrong in the Tilemap-plugin so I tried reinstalling C2 and installed r245 Beta but it didn't solve the issue.

    Image

    http://imgur.com/a/rtbsa

    Attach a Capx

    https://drive.google.com/drive/folders/ ... WpBalpjWWs

    Description of Capx

    2 Layouts, other one has a Tilemap in it and other doesn't.

    Steps to Reproduce Bug

    Open the Capx file. Run the layout with a Tilemap in Firefox.

    Observed Result

    Tilemap script is unresponsive (error in Firefox, delay in other browsers)

    Expected Result

    No errors, no noticeable delay.

    Affected Browsers

    • Chrome: NO (or partially)
    • FireFox: YES
    • Edge: partially
    • Internet Explorer: NO (or partially)

    Operating System and Service Pack

    Windows 10

    Construct 2 Version ID

    r244 & r245 (beta)

  • If I understood you correctly:

    Give the object bullet behavior and then Every Tick -> Set Bullet angle of motion to angle(self.x,self.y,mouse.x,self.y). In other words, towards your cursor with the Y axis locked.

  • I've done my pixel art with a mouse for years. I would say it's quite high resolution as well,

    Pixel art

    More pixel art

    I need to get myself a better tablet, but even then I feel like I might prefer to do most of the job by mouse.

  • You can spawn the turrets automatically with the boat when you create a container for the boat and put the turrets there. However you still need to pin the turrets when each boat is created:

    System: Every 3 seconds-> Sprite: Spawn 'Boat', Turret: Pin to 'Boat'

  • It's entirely possible. Have you checked out the infinite runner examples that come with Construct 2? If you just want levels to be random every time, you can simply generate things outside the visible area before the player moves there. If you want the levels to look very specific or be able to save them, that's a bit more complicated since you need to work with arrays and advanced programming expressions.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm working on a "pseudo-perspective" for my game and I succeeded with the effect but I'm having some trouble with position of the zoom. Basically I want to zoom to a specific point but I'm only managing to zoom dead center of the screen.

    Here's a screenshot to illustrate what I want a little better:

    I tried zooming to a camera object but it kind of centers it as well leading to UI elements going offscreen.

  • I was actually planning on making my next game in pixel art because the file size can be kept small and animations are a little easier to make. However I couldn't find any way to make it scale good in mobile.

    So I went with hand-drawn and color in GIMP.

  • I'm afraid I don't have the knowledge to help you here, but don't you have like 3 threads about the same issue? That's not going to give you a solution any faster. How about trying to google the solution instead?

    Also:

    [quote:1s9qf0ny]5. Please allow 24 hours for a response. Replying with "can't anyone help?" after 20 minutes could be misconstrued as rudeness, since it is impossible all our forum visitors could have checked the thread in that time. If you're seeing a lot of views and no replies, don't forget we commonly have more search crawlers (e.g. Google) indexing the site than real users, so the views count may be inflated.

  • Hope I understood what you want correctly,

    1. Create a background layer with the road/background picture.

    2. Create a sprite object on the background layer, name it Camera and give it Scroll To-behavior.

    3. Move the Camera(sprite object) around how you want (bullet behavior, events etc.).

    4. For another layer(s), set parallax to 0 and put everything you DON'T want to move there.

  • I make the graphics myself (that's my strenght, programming not so much) and get my sound effects from freesounds.org or similar sites.

  • Instead of a fixed value of 0.08, do 4.8*dt which will take into account changes in framerate

    That fixed it, thanks! Tried adding dt in there before but wrote it wrong way in the expression.

  • Hey guys,

    I'm having jitter in my game when testing on mobile. I figured out that the lerp in my camera object (smooth scrolling) is causing this. The movement in my game is very similar to Asteroids (Custom Movement). Here's what I'm using for the camera at the moment:

    Every tick|Camera -> Set position to lerp(Self.X, Player.X, 0.08), lerp(Self.Y, Player.Y, 0.08)

    Is there any way to get a smooth scrolling camera in mobile without jitter/lag?

  • Here's one tutorial for creating match-3 games in C2:

    http://gamedevelopment.tutsplus.com/tut ... medev-8071

    In the 2nd part of the tutorial it is explained how to swap blocks.