ikke2902's Recent Forum Activity

  • You are amazing, that did the trick

    Thank you very much!

  • What should my capx do?

    Every Blok check if below him is a Blok. When there are none, the Blok will move down to his spot.

    The challenge is how the Bloks knows if there is no Bloks below him.

    What I have done

    I have been using an array for this problem.

    A set of Bloks has an RowID and ColumnID. These are used to insert value in the array.

    If a Blok exist, he will set in the array at x=Blok.ColumnID,y=Blok.RowID as value=1

    When a Blok got destroyed, the value in the array at x=Blok.ColumnID,y=Blok.RowID becomes value=0

    Each Blok checks in the array at x=Blok.ColumnID,y=Blok.RowID+1 (the row below the current Blok), if this value is zero. The Blok will move down performing the following actions.

    In the array at x=Blok.ColumnID,y=Blok.RowID value become zero

    The row below will receive a value=1

    The old RowID of the block will change to RowID+1

    There after an event will snap these Bloks to the Nodes with the same ColumnID and RowID.

    Problem

    When you destroy many blocks in a short time. A bug will appear. It prevents Bloks from moving down or getting spawned. Value 1 are assigned to the array while there are no Bloks in that position.

    Can someone explain me what is causing this problem? When possible, how can I solve it?

    This can be solved by resetting the entire array to zero and putting in value=1 back in the array. This works, but it require many unnecessary "for each loops".

    If there are others ways to do this, please let me know

    I'm really having hard time figuring out what is causing this bug

    Thanks in advance for helping

    Here is the capx

    https://dl.dropboxusercontent.com/u/15249798/C2%20how%20to%20move%20Bloks%20down.capx

    Edit: Changed the title so [Solved] can fit in

  • Tyrian 2k and Jets'n'guns, they both have the biggest collection of weapons and upgrades afaik.

    Tyrian 2k is free on gog.com.

    Both have a similar concept.

    You get coins for killing the enemy, which you can spend on buying weapons/upgrades.

    Each weapon can be upgraded 3 times and up (some ten times!). Those are not regular increased fire rate or increased damage. You can fire more rockets/lasers at once. Shoots an additional plasma in a different direction etc.

    The beauty is you can undo the upgrade and sell the weapon at anytime for the full price! You won't be bound to one single weapon every level due to this.

    Note Jets'n'guns is inspired by Tyrian 2k

  • Before the action set time scale to zero, I would add wait zero second action

  • That is possible and not too hard.

    Make a global variable.

    Every 5 seconds add 1 to global variable

    If global variable is smaller then 6 > Spawn weak monster

    If global variable is equal to 6 > Spawn strong monster

    > Set global variable to 0

    Good luck ^^

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Absolutely love it! Also the cute little music is a huge plus. Kept me playing for a while haha.

    Just one note, you might want to pick a more unique name for your game next time. It was quite hard to search for this by entreing his name directly.

    I had to go through searching for your company name to find this game.

    Other than that, well done and keep it up!

    Rated it 5 star

  • I have uploaded two zip files. Each containing two video with a DxDiag log.

    Both shows similar problems. Sometimes moving object over great distance can fix the bug temporarily.

    The bug seems to be related to WebGL. I have tried tot turn that option on/off on my laptop.

    Here is the one for the laptop

    https://dl.dropboxusercontent.com/u/152 ... laptop.zip

    Here the computer

    https://dl.dropboxusercontent.com/u/152 ... laptop.zip

  • The double tab conditions should be shown.

    Coud you show your event sheet?

  • Problem Description

    Moving an object in the layout can cause other object to be display differently in the current and other layout.

    The object is still on the correct position, he is just invisble there, while he is diplayed somewhere else.

    I have a bigger project and this is causing troubles during editing. I can't see properly what object I have selected.

    Though, this bug doesn't affect the preview of the game. Exporting the game doesn't got affected either.

    I have tried the same Capx on three different computer and all of them show the same problem.

    I suspect there is a problem with the warp effect. Even deleting him, there might be some left overs whom didn't got removed.

    Attach a Capx

    https://dl.dropboxusercontent.com/u/152 ... 20bug.capx

    Description of Capx

    This Capx is stripped down from my bigger project. I didn't manage to reproduce the exact same bug from scratch. However, this Capx does consist the bug.

    It has two spritefonts objects.

    Both have a replace color effect.

    The left spritefont has an effect Warp.

    This is how the layout looks like originally

    Select the spritefont named start and move him around randomly. Everything should be displayed differently eventually.

    Eventhough everything seems to be displayed differently, or seems to be dissapeared sometimes. The object is still on his original position.

    Steps to Reproduce Bug

    You will need this spritefont https://dl.dropboxusercontent.com/u/152 ... _34x29.png

    • Create spritefont 1 on the left side
    • Change the sprite font to the one I have provided
    • Set character witdh to 34
    • Set character height to 29
    • Set character spacing to 3
    • Create spritefont 2 on the right side
    • Change the sprite font to the one I have provided
    • Set character witdh to 34
    • Set character height to 29
    • Set character spacing to 3
    • Copy spritefont 2 three times and but them under each other.
    • Add replace color effect on spritefont 1 and spritefont 2
    • Add warp effect on spritefont 1
    • Select spritefont 1 and move around
    • If this doesn't work, try ctrl+z till spritefont 1 is on it's original position
    • select the first spritefont 2 and move him around

    Observed Result

    Sometimes, the spritefont with the warp effect will dissapear visually from the layout. Sometimes it influence other objects visual representation.

    Often, this doesn't occur.

    Expected Result

    The objects should be displayed in the original position.

    Affected Browsers

    • Chrome: NO
    • FireFox: NO
    • Internet Explorer: NO

    Operating System and Service Pack

    Windows 7 Home Premium

    Service pack 1

    I forgot what operating system the other computers have. I will post it here once I have acces to it.

    Construct 2 Version ID

    r200 stable

  • Sorry for the late reply, I've got busy lately.

    Without further ado, here we go!

    I think I see the problem. You might be overwriting the webstorage value with the last Money value instead of adding to it.

    Try the following.

    On start of Layout : Set Money to int(WebStorage.LocalValue("TotalMoney"))

    On winning the game : -Add 250 to Money

    -Set Local Key "TotalMoney" to Money

  • I am still confused with what you want. I guess you only want to update the web value when Money is bigger. Also set Money to the webvalue only at the start. Try these two method

    1) add/change a couple of conditions

    On start of Layout+int(WebStorage.LocalValue("TotalMoney")) > 0: Set Money to int(WebStorage.LocalValue("TotalMoney"))

    Money bigger than int(WebStorage.LocalValue("TotalMoney")): Set Local Key "Total Money" to Money

    2) Try to switch the order like this and put them at the bottom of the event sheet.

    Money not equal to int(WebStorage.LocalValue("TotalMoney")): Set Local Key "Total Money" to Money

    int(WebStorage.LocalValue("TotalMoney")) > 0: Set Money to int(WebStorage.LocalValue("TotalMoney"))

  • Open a new project in C2 and search for persist.... template.

    It use a behavior I believe. Much more simpler and no need to use special tricks

ikke2902's avatar

ikke2902

Member since 8 Feb, 2012

None one is following ikke2902 yet!

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies