GPProd's Forum Posts

  • I like to do them in a separate layer rather then layout, that way you can have the inventory screen hovering over the game screen. To me it just looks better that way. Example: https://gamefaqs.akamaized.net/screens/ ... 7_2_22.jpg

    But if you're going to have the inventory cover the entire game screen anyways, then you may as well do it on a separate layout.

    Doing it in different layout will reset the current layout when u return to it, it doesnt work :/ The entire layout where u were before opening inventory will be reset and start over haha xD

  • just a thought..

    capx> http://s000.tinyupload.com/index.php?fi ... 6798188593

    Yes! That is it!! Thanks aloooooot! So perfect <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">))

    Thank you very much for putting down your time to make this capx, really! ^_^

  • The group "for testing" is only for getting the keycodes, it doesnt bind keys to anything, it just sets the variable "keycodeCheck"

    1. Press a button or key ingame to get the corresponding keycode of it. You can see the keycode when you watch the variable "keycodeCheck" in the Debugger.

    2. Once you know the keycodes you can create variables for all your controls (Jump/Attack/Dash) and assign default values to them (the keycodes of the keys/buttons you got in step 1.) This will be the standard Keybindings the game starts with.

    3a. (this is the easy way) All you have to do from here is building a menu where the player can either press a button/key to assign a key to an action (jump)

    3b. or he can choose from a list of available buttons/keys.

    In this case you would need a list of all keys/buttons and there corresponding keycode, maybe saved in an .xml file.

    4a. when the player pressed the button/key you can get the keycode with the expression "Keyboard.LastKeyCode" for keyboard or "Gampad.LastButton(gamepadIndex)" for gamepad. Set the variable for the action (jump) to the keycode

    4b. Like above but instead of pressing a button the player would choose a button/key from a list.

    example jump button/key.

    you want the standard jump key to be spacebar on keyboard and A on gamepad.

    Use the "for testing" group stuff to get your corresponding keycodes. (spacebar= 32 A=0 ...i think )

    create variable "keyJump" and set it to "32"

    create variable "padJump" and set it to "0"

    Give the player a way to choose the own button/key 4a or 4b

    set the variable "keyJump" or "padJump" to the new value "n"

    I hope it helps.

    I would highly suggest to pick the "a" route, where the player has to push a key to assign it. It's mutch easyer to implement and more convenient for the player.

    But maybe i still totally misunderstood what you want

    Hey.. No this doesnt really help, i still dont understand what you are trying to do/say. I know what you mean by the IDEA, but not just how to execute it. I just want a player to be able to go to options, and bind a key upon pressing on it. For example, press on ''Jump'' and then the player presses a KEY on keyboard or gamepad and done. Now jump = the key the pressed. I just dont know how to do that. Thanks for trying though, im gonna try to find someone to make a capx and pay them like 30$ or something.

    Thanks for your time anyway.

  • I think this is pretty self-explanatory.

    If you have trouble with it nonetheless, just holler at me

    Hey there! ^_^

    Thanks for taking your time, but no i have absolutely no idea what you did there.

    I want to be able to map keys for Jump/Attack/Dash and so on. Not last key pressed is it, etc.

    Just a normal way where you go to options, and bind the keys you want to movement.

    Save em and then use em ingame, like any options/keybind set on.. any game really.

    Thanks for trying though, i just think you got me wrong ^_^

    Thanks anyway!

  • Hey there!

    I am looking for a tutorial or a way to do keybindings. I searched for it, and couldn't find any post about this.

    Keybindings like;

    In game you go to options -> set a key for jump/attack and other buttons, save, and then be able to use those keys you set in options, in game.

    Anyone?

    Thanks in advance.

  • Hey there! ^_^

    What i was wondering about was the scrolling down system -

    If we take a look at like for example, any classic RPG game, such as Final fantasy 7 or Breath of fire 3 -

    When you recieve items to the inventory, you can scroll down.

    I got the inventory part here, but how can one do the scrolling down?

    Thanks in advance.

  • No one is able to do this? ^_^

  • Greetings there! ^_^

    I am currently hiring someone who is a professional with C2, someone who is able to create and code the following;

    1. Inventory with texts and icons - Items added and removed from inventory up to 500 items.

    2. Equip slots in both weapons/armor/accessories - to equip and remove equipment - taken from or added back to inventory.

    3. Display effects on said 'pressed button' - according to what item is currently equipped.

    Coding must be without bugs and errors.

    Contact will occur via Skype and payment will be through Paypal.

    Price and payment can be discussed untill we both agree.

    Thank you for your time ^_^

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • GPProd

    If you look at the photo the Noncentz705 posted, the FileChooser object is selected, and the property sheet on the left of the phot shows the properties for the FileChooser. At the bottom, Noncentz705 has given the FileChooser object 'Id' property the name 'foo'.

    In the same photo, the Event sheet shows the Condition and action. The action says:

    'Browser Execute Javascript "foo.click();"

    i.e. whatever the id of the FileChooser is, that is what needs to be before the ".click();".

    If Tom would fix the forum, it would make this much easier.

    If you still don'tget it, I'l upload to my dropbox.

    Edit

    Try the following: https://dl.dropboxusercontent.com/u/34306693/FileChooserButton.capx

    YESS it worked! Now i got it! Thanks!! ^_^

    Thank you so much for taking the time to do this, 1000 thumbs up for you! ^_^

  • No one seems to know this >.<

  • GPProd

    The .capx is missing one essential piece of info that's needed for it to work - the 'Id name' property of the FileChooser object that's used in the browser call.

    In the picture, they call it 'foo', so the browser call will be 'foo.click();'.

    Unfortunately, I can't attach the fixed .capx as this forum has broken again (@Tom).

    Hey, i am sorry but i did not understand that >.<

    I am pretty new to this, and.. All i understood was, change the "Js File_Chooser_id.click();" into "Js File_Chooser_id.foo.click();"

    But that didnt work either >.< .. Is it a hard change to make it work?

    Very much appreciate your response ^_^

  • :lol: not a problem, glad I could help.

    Hey! I just tried that capx and nothing happens? Has the C2 update nulled this or? How can it be done now? >.<

  • Greetings there! ^_^

    So i newely bought the C2 and have looked up on the tutorials, but however there is 1 thing i need help with!

    The file chooser! What i want to do is simply;

    Allow to upload an image 1 by 1, that is let's say you run the program. You upload an image, and 5 minutes later you upload another image -

    without replacing the first one. So far i have set

    Sprite 1 to load FileChooser.FileURLAt(0)

    Sprite 2 to load FileChooser.FileURLAt(1)

    And etc. It does not work. It only works if you set file chooser to multiple files, ONCE though.

    But i want to be able to load up single files now and then WITHOUT replacing the existing one.

    Any help or capx? >.<

  • hello, ia am trying same thing... i want to create photo album and so far no results...

    Yeh same here, i want to be able to import images from time to time, not just 1 or 3 at once but rather 1 by 1..

    But it seems that it cant be done :/ ..

  • No1 knows how to import images 1 by 1?? Maybe it can't be done??