unxcellent's Recent Forum Activity

  • Hello all im trying to create a in-game shop.

    However, I have encounter a weird problem,

    I got this shop example from an old forum post.

    Here's my problem,

    I have a global variable called totalMoney which is basically the total coins the player has collected during playtime.

    When you enter the shop with a totalMoney amount, example, System --> Start of layout --> System --> set TotalMoney to 10 and you try to buy

    a item from the shop the bought and selected functionality works fine however, NO coin is deducted from the 'TotalMoney' global variable.

    Here's an example where it does NOT work.

    https://drive.google.com/file/d/0B9tGN8-NMP_xZzBETjhwbnBzc00/view?usp=sharing

    If you go to the event sheet and look for System-->TotalMoney > item_buy.price and delete "System --> Restart Layout"

    you can see that now it starts deducting from the totalMoney but however the bought/selected functionality does NOT work.

    But, if I go into the layout with totalMoney = 0 and somehow add coins inside the 'in-game' shop everything works fine.

    I made an example of this:

    https://drive.google.com/file/d/0B9tGN8-NMP_xeVZfeTFtNU9Udmc/view?usp=sharing

    Sorry if this is confusing,

    English is not my first language and I tried my best to describe it properly.

    If you can help me fix this will be great .

    If there's an easier way to create a in-game shop please let me know or show me a capx file.

  • Well by "reduce" I meant "increase" as the number is negative.

    Use something like -30 instead of -54.

    Hi Coin, thanks for the help.

    I got it. forgot to put them as solid.

  • Well by "reduce" I meant "increase" as the number is negative.

    Use something like -30 instead of -54.

    I used -30,-15,-0, but every time the hit the floor they merge instead of stacking in top of each other.

  • Hi,

    Remove the bullet behavior, decrease the Y coordinate where they appear and let the magic happen.

    https://snag.gy/TqR2vl.jpg

    Hi coin, thanks for the help but how did you reduce the Y?

    can you show me your code?

    Just in case, I want the box to spawn outside the playable screen and fall from the top of the screen like on my example capx.

    When you said decrease the the Y coordinates you mean place each box manually in top of each other by specific YX coordinates, if so I want them to drop from the top of the screen and then stack in top of each other. Like tetris basically.

  • For example,

    I have a 'Box' with different animations which are different colors.

    A different color spawns every 2 seconds from the top of the screen.

    Every time they hit the floor the 'Boxes' merge instead of stacking on top of each other.

    I have tried different things like physics, pin, etc. However, I'm still new at construct 2 and cannot figure this out.

    I'm pretty sure this a simple thing, but for the life of me I cant figure it out.

    here's a capx with an example.

    https://drive.google.com/folderview?id= ... sp=sharing

    Press the download button on the top right.

  • Something like this ? I quickly commented what I did in the file, you can further refine it according to your preference.

    drive.google.com/file/d/0Bzn2vfEvU3rYSW8ya0lzZC1jRDQ/view?usp=sharing

    Yes, this what I wanted!

    Thank you!

  • Hello, I'm having a blast learning C2.

    Recently I wanted to implement a feature in a game that I'm working on but I'm not sure on how to do this.

    What I have:

    * You have a Player, let's call him RED

    ** When you click on this player he will spawn 3 different buttons/objects.

    *** Let's call this objects Blue, Black, and Green.

    **** When you click on Blue, Black, and Green they will spawn 'Something', let say another menu.

    Here's a capx example of the above, Click here to download --> https://drive.google.com/folderview?id=0B9tGN8-NMP_xaFpieUJxcUt5Rlk&usp=sharing

    What I'm trying to accomplish is the following:

    * When you click on the player RED the camera will 'Zoom in' focusing on the player RED and it's new menu/object buttons.

    * When you click on on something that its not the objects Blue, Black, or Green, this three object should disappear or be destroy and the player should be able to move again.

    * I also would like to accomplish that if you press the player RED everything on the background like enemies, projectiles, etc should pause (if you could point me to the right direction I will much appreciate it)

    Thanks is advance

  • Thanks!

  • Hello all,

    I'm having an issue when my enemy goes to the right he destroys all the blocks instead of one and then going to the opposite direction.

    When my enemy goes to the left he does the correct thing which is that he breaks one block and then goes to the opposite direction.

    How can I fix this?

    my .capx

    http://www85.zippyshare.com/v/2VucYZif/file.html

  • Thanks pixelpower for your reply,

    however, I know how to make the object be destroy when a collision happens.

    I uploaded my .capx file into the same website you provided.

    see if you can download it from this link.

    http://www85.zippyshare.com/v/2VucYZif/file.html

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello I'm having an issue which im kinda stuck and I know its probably a simple fix,

    but for the life of me I cannot figure it out.

    I have this object which after breaking a block to the left it goes right away to the right.

    However, when it hits an block to the right it breaks all the blocks to the right.

    How I can have the same behaviour? I want it to break one and goes to the other side.

    Here's my .capx

    https://drive.google.com/folderview?id= ... sp=sharing

  • Thanks man this help me a lot and got what im doing working.

    I wasn't aware of "compare frame" option.

    Seems that there's a lot for me to learn.

    Thx again for the help.

unxcellent's avatar

unxcellent

Member since 27 May, 2016

None one is following unxcellent yet!

Trophy Case

  • 8-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

10/44
How to earn trophies