aridale's Recent Forum Activity

  • Ashley nope I hadnt tried that didnt know I could. I just did though and got an xmlhttprequest cannot load the page. That was a cross domain issue. Tried again accessing the secure page directly and it worked.

    No idea why now itd work and it wouldnt last week. I didnt touch it since I posted this thread initially... /shrug

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I noticed it too in my very first project too. Try turnin off linear scaling

  • Sooo any word or input on this?

  • the best way to make any sort of bar that has a changing value is to use a ratio or a percent. You need a sprite thats the bar fill sprite and you shrink or stretch this sprite based on the ratio.

    sprite.width = var_NormWidth*(CurHp/MaxHp)

    var_NormWidth is the max width the bar should be when full. CurHp and MaxHp are obvious and dividing Cur by Max gives the ratio of Hp.

  • the folders are just organizational they have no effect on how to use the animation. So make sure each animation has a proper identifying name like eng_ManuPage eng_Win ... ara_ManuPage ara_Win etc

    Then based on which flag is clicked set the required objects to the proper language animations

  • it would prolly also be useful for level editors and such

  • afaik you cant. Especially not when using the default control systems. Youll either have to make a custom movement system with that behavior or just do it without a behavior at all

  • yeah you can actually...

    add a For Each loop then pick your object you want to loop thru then inside the loop do a Compare Instance Variable and see if its Name instance variable (that you added to the object) matches the one your lookin for.

    I do this all time. Its how I avoid adding multiples of the same object like Text objects. I just add one and add a Tag instance var then use that tag to set the text for specific ones

  • you need to set the explosions position to the ships position sounds like

  • loop from 0 to the total number of cards-1. use the loopindex +/- any offset you want to position each card as you loop thru

  • you need to pick a specific inventory slot not just hope itll pick an empty one

    It doesnt matter how an inventory of any size is displayed to the players inventories are simply arrays

    Dont think of your inventory in terms of this object is this slot and this item goes in this slot. Thats all just visual representation of the data in the array

    if you have 6 inventory slots then you need an array of length 6. array position 0 = slot 1 ... array position 5 = slot 6

    Store the info of the ITEM in the array position of the slot its in. To display that to the players create graphical objects to show thats contained in the array

    Once your that far then you need to make sure you know which visual inventory slot object belongs to which spot in the inventory array. Id use an instance variable on the inventory slot object. Maybe even a family instance variable. With only 6 slots you could use globals too but I wouldnt advise it

    Place 6 inventory slot objects in the game however you want. Assign each a number matching a slot in your inventory array (0-5) and THEN when you check for slots to use you can use the instance var to tell which slot it was that was clicked or whatever.

    This will give you a working visual inventory but it WONT give you any management of it. Youll have to do that yourself once the rest is in place. Youll have to make sure the array position doesnt have anything in it before adding a new item to it. Youll have to control moving from one slot to another and/or switching positions with other objects.

    But the basis for all that will be in place if you go with what Ive said here

  • nope not cross domain at all I already fought that battle lol. Unless iphone is doin some crazy stuff I dunno about

aridale's avatar

aridale

Member since 7 Dec, 2011

None one is following aridale yet!

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies