SamRock's Forum Posts

  • Hi Ashley! Thank you so much for responding. Yes I have the latest Windows Phone 8.1 updates install on my Lumia 720.

    The issue is indeed with the large 2048 x 2048 sprite sheet generated after exporting to VS2013. Once I cropped the Blank borders and recompiled o my Phone.. I didnt see the Distortion again!

    Here is the image illustration of the size (May be you can try out while I create a sample .CAPX) :

    [attachment=1:2plmczlc][/attachment:2plmczlc]

    BTW... when I said company I meant my brother

    He is working hard on creating some awesome Graphics for my game. I believe will be one of the beautiful games made on Construct 2! I am so much in love with C2. Sadly I only have the Free Edition and don't know if I should buy the Personal Edition. If you promise me my game will do well I will consider buying it. .

    But its a huge investment for me!! Here is a screenshot of my game. Yes I am sharing it finally.. not the Capx yet!

    What do you think of the screenshot? It's a night setup, that's why its all dark.

    [attachment=0:2plmczlc][/attachment:2plmczlc]

  • I found a fix .. I reduced the height of the tall sprites to about 330.. ie 512x330. Now the images seem to be appearing clearly.

    Anyone has any idea if Windows Phone app has an image size limitation that could affect the performance?

    Also earlier I had about three 512x512 background images under a sprite sheet and few smaller sized images in the same animation frame. When exported from Construct 2 to VS2013... the animation strip was grouped into a huge 2048 x 2048 sprite image!!!

    Could this be the reason for the distorted images?

    After reducing the height of the tall sprites, I see there is a 1024 x 1024 dimension file. And distorted image is gone!

  • Isometric functionalities:

    TileMap

    Pathfinding

    Zorder

    Slope/elevation

  • [attachment=0:39jk97k2][/attachment:39jk97k2]

    Problem Description

    I am making a side scrolling game, where I am spawn Platforms above the Game layout. They gradually move downwards or to the left side. The game works perfectly on Windows 8.1 and the Construct 2 "Run Layout" in browser.

    But when I port the same game to Windows Phone, the images are getting distorted/corrupted! This is not happening with all images.

    I am using 256x160 sized tiles for Platforms and repeating 512x512 sprites for background/borders. Its the border images that causing the problem.

    Attach a Capx

    I would love to upload. But my company policies restrict me from doing so.

    It has got many Artworks /sprites that we cant share yet.

    However, here is a screenshot of the issue.

    [attachment=1:39jk97k2][/attachment:39jk97k2]

    Description of Capx

    1. Spawn Platforms and background at regular interval.

    2. These will scroll to the left and then get destroyed

    3. I have a Player Sprite that performs standard platform moves (up down, left right)

    4. Have coins/items appearing at random platforms which the player can collect

    Steps to Reproduce Bug

      Only on Windows Phone. Appears immediately the game is started. Game works well on Computer browser and as a Windows 8.1 app.

    Affected Browsers

    • Chrome: (NO)
    • FireFox: (NO)
    • Internet Explorer: (NO)

    Operating System and Service Pack

    Windows 8.1 Enterprise Edition x64 bit

    Visual Studio 2013 Pro

    Construct 2 Version ID

    Construct 2 Beta release r177

  • [attachment=0:39ia3pqb][/attachment:39ia3pqb]

    Problem Description

    I am making a side scrolling game, where I am spawning Platforms above the Game layout. They gradually move downwards or to the left side. The game works perfectly on Windows 8.1 and the Construct 2 "Run Layout" in browser.

    But when I port the same game to Windows Phone, the images are getting distorted/corrupted! This is not happening with all images.

    I am using 256x160 sized tiles for Platforms and repeating 512x512 sprites for background/borders. Its the border images that causing the problem.

    Attach a Capx

    I would love to upload. But my company policies restrict me from doing so.

    It has got many Artworks /sprites that we cant share yet.

    However, here is a screenshot of the issue.

    [attachment=1:39ia3pqb][/attachment:39ia3pqb]

    Description of Capx

    1. Spawn Platforms and background at regular interval.

    2. These will scroll to the left and then get destroyed

    3. I have a Player Sprite that performs standard platform moves (up down, left right)

    4. Have coins/items appearing at random platforms which the player can collect

    Steps to Reproduce Bug

      Only on Windows Phone. Appears immediately the game is started. Game works well on Computer browser and as a Windows 8.1 app.

    Affected Browsers

    • Chrome: (NO)
    • FireFox: (NO)
    • Internet Explorer: (NO)

    Operating System and Service Pack

    Windows 8.1 Enterprise Edition x64 bit

    Visual Studio 2013 Pro

    Construct 2 Version ID

    Construct 2 Beta release r177

  • Hi! I am Samuel Roshan. Always Dreamt of making a awesome isometric game like Jagged Alliance 2 and Diablo 2. With rise of mobile game I also want to create an action based endless runner. I hope Construct 2 is my answer to all my dreams.

    Wish all the best to all the game makes here. Special thanks to everyone who helped me on various Forum topics and disscusion. Especially

  • Ah!! Thats sad

    I looked around for some games that uses isometric tiles here. But there are hardly any and doesnt work with the game idea I had.

    I feel ashamed to ask so much from you now....

    It would be great if you can give me some idea on how I can achieve the effect from that video, I will try to take it forward from there. And I really appreciate helping me out

  • You are right about everything. This thing is getting tougher with every new idea. And Construct 2 seems to be very restrictive.

    Here is the game that inspired me to go with this style of representation. Its was made using Construct 2.

    (URL not allowed )

    youtu.be/m0lCsQQE4N8

    viewtopic.php?f=148&t=98236

    I dont want it to be so complex, with varying platform height. Just basic, pipes going Straight, Left, Right. Do you think its possible?

  • Assuming you are shooting from bottom of the screen to the top.

    You can decrement the Size of the Ball as the Y Axis changes....

    Example:

    [quote:20qmfwhs]

    Every Tick:

    Ball.Y=Ball.Y - 1

    Ball.Scale = Ball.Scale - Ball.Y

    The above is just the pseudo code. You might have to translate it into Construct 2 formulas.

  • Post your capx again and I'll take a look.

    Here you go... I am using variable "addY", set it to zero to see your default logic work. Value of 24 makes the tiles align.

    I am using "Direction" and "Ang" instance variables. Ang is used instead of the inbuilt "Angle" property (needed for scrolling)

    Let me know if any questions

  • What you need to do is:

    • Pick only the instance you just created (the create-object action pre-picks the newest instance for you, but I don't know if it "un-picks" the other instances, you'll have to test)
    • Add/Subtract to it's Y position only once (preferrably at the moment of creation). You don't need any fancy formulas to it, just add directly to it's Y position.
    • I would avoid adjusting the X position, since that can cause seams to appear. The platforms will always be coming from the right, correct?

    I am only adding the Y in the platform creation event. The scrolling code is still the same.. but I am now wondering if I have to deduct the additional Y at scroll.

    I also tried creating an extra Origin Point to define where the next tile should spawn, but this too resulted in drifting.

    Not sure how to proceed now

    Don't worry about that man, just pay it forward.

    Trust me I will

  • Fimbul, only the graphics look like isometric but concept is still the same. Instead of rotating the platform, I want to use a curved platform to represent the change in direction. I drew an isometric diamond around the pipes to give you an idea of what ends need to join when a new tile is created.

    Your logic works perfectly, I was even able to randomly pick variously tiles and make a continuous path. The problem I am facing is when I try to adjust the height with the previous tile, the whole platform starts drifting downwards.

    And I am really sorry about the first images. I had no images ready and quickly made them on Paintbrush to give an idea of the problem I was facing. I should have taken an isometric character to show that he will be walking inside the pipe area

    Thanks again for your time and recommendation. I am sticking to your logic, just need help with managing the additional X, Y adjustments

    Most Importantly: If my game ever sees light of day.... I will give you all the credit for helping me

  • Hi Fimbul

    I am back. .. I tried your code. It works great. . I had to make some changes in order to keep the images from rotating but keep the angle of scroll same. After I replaced your sprite with mine, I had to make some adjustments to the Y coordinate in order align them properly. But when I do that, the platform starts moving downwards at every interval.

    Here is the change I made to adjust the Y position for a new platform:

    [quote:zm1diu5b]

    Y= (Platform.Y)-sin(Platform.Angle)*(PlatformWidth/2)-sin(PlatformCreationAngle)*(PlatformWidth/2) + addY

    And this is how I intend to create my images (not final). As you can see they are isometric tiles, which I will be joining to create a chain to pipes connected.

    [attachment=0:zm1diu5b][/attachment:zm1diu5b]

    Now when I am walking on tile #1, I continue scrolling in the default angle (as in ur code). But when my character touches tile #3, I change scroll angle to the opposite direction. Of course the character will remain in center of the screen.

    The only problem I have right now is that the platform starts moving downwards when I add a Y value. Is there an mathematical way of handling this??

    Thanks again for your time and help!!

  • Fimbul You sir are a genius!!! I literally had tears in my eyes when I saw how much time and effort you took to comment every line with so much detail. Thank you so much!

    After all those math functions I realized I am far behind and need to do some serious reading.

    I will now try to integrate your awesome logic into mine. I had just one more question but I will ask that once I have your awesome logic on my game

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you!! Looks like you saved this with the Beta. Downloading the new version now