jobel's Recent Forum Activity

  • I just updated the original post... as I figured a way to go through IIDs but it doesn't help me go left and right with the D-pad...

  • Hi,

    I'm doing some menu stuff in my game. I want the GamePad (d-pad) to be able to go up/down, left/right in a grid. It needs to highlight the one it's on and then do an action when user hits the "A" button.

    I'd like to hear some suggestions on how people have done this. I need to be able to pick the object (all objects are the same type) and reference it directly once "on it". So when the gamepad hits "A" it knows which object it's on and uses that objects instance variables to do certain things.

    Here's a capx test of what I mean... I've done it with the Mouse which is much simpler since the user selects the "button" they want, opposed to having to scroll through it. But I need to use the GamePad.

    In my real game I've started to make it work in a cludgy way by making an array of all the XY positions of the buttons then depending on where I am in the array I know which button I'm on, but I obvious can't access that button's instance variables!

    In this test I figured a way to scroll through with cycling the IIDs however this does not help me going Left or Right with the d-pad.. so maybe there's a completely different way to do it?

    any help would be greatly appreciated!

  • you can play music simultaneously.. see this thread:

    I think the Music Folder must have something to do with how often it can be triggered... I'm not really sure, but all I know is it works now and I never have any issues triggering music.

  • I knew it was something stupid!

    suddenly, my world makes sense again..

  • Try Construct 3

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

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

    I had the sound effect audio imported into the Music Directory... I guess it doesn't refresh as fast which makes sense since music plays longer than SFX..

  • thanks eli0s and winsonzhong It most likely is a Chrome problem. I retested with Firefox and you're correct it works fine.. not sure what was happening before..I was getting some unexpected results when at fullscreen in Firefox (it sometimes acts as if frozen, the screen won't redraw, then all of a sudden it does)...but that I think is unrelated to this. I don't think a Scirra bug report will help as it's probably something Google has to take care of.

  • and I don't mean that as a slight against C2.. just most of us making games on here aren't pros and don't make moving parts so veteran-like!

  • This seems like a bug, but I can't be sure as I've never used the Drag Drop behavior before.

    I have a sound playing for when you drag&drop successfully into a box and a different sound for when you miss the target. Both sounds play the first time through. If you continue drag and dropping then only 1 sound plays (and it varies which sound). I tried it in Chrome and in Firefox, same results.

    The fact that it varies makes me feel its the code... I'm probably overlooking something, but I can't see it.

    Can someone take a look?

  • wow.. I literally just want to give up after seeing your first devlog video... you are really attacking this thing.. you got some true motivation! And you have a great eye for effects... I suppose it helps to be a great artist, but still your use of special effects seems quite seasoned. Watching the trailer I forgot I was looking at a game made in C2...

    Like that electrified teleport beam in your game.. I've been trying to make a beam weapon attack look good in my game for over a month now. I have it looking okay, but not even close to yours. It doesn't behave well and glitches.. I've tried everything..

    I'd say good luck, but with your skills and motivation you don't need luck.. just a matter of time before you do really well for yourself!

    cheers!

  • C2 is not a big investment... at all. Even the Business License is dirt cheap compared to other pro-applications out there (PhotoShop). You can use it for free up to 100 Events which is more than enough to test it's performance for yourself.

    Learning to use C2 would never waste anyone's time. It will only make you better. It will teach you about game programming.

    When will people learn that it's not the tools that matter, it's what you do with them? You can make a great game out of a cardboard box...

  • [quote:2g0a0cmc]

    So for instant a Character object, can have several item objects bound to it. And when I need to for instant calculate the weight of items that a character is carrying I can just do.

    "Pick Item.owner_UID = Character.UID"

    hmm that's a good idea...

    How do you keep the data across layouts? global variables? Like if you were to go to a character screen, where do you store the player's attributes and how do you access them? In a combat layout you probably need access to that same data. How do you transfer it without using a global table or array?

    I guess I hadn't thought of C2 not supporting a plugin.. that would be bad.. that CSV plugin makes life REALLY easy, since using arrays is a little cumbersome in C2. Or rather, not very descriptive.

    With the CSV plugin you can just refer to columns and reference the row by ID....

      NAME   HEALTH  AC  GOLD
    1 Harry    50     5  201
    2 Zorn     30     8  0
    3 Kaz      80     5  25
    
    CSV_table.At("HEALTH", str(Player1.ID)) [/code:2g0a0cmc]   //  ID is the first column without a header.. so if ID is '1' it will return 50
  • music can be textural or like a soundscape as well!

    check out the beginning to Elliot Goldenthal's "Agnus Dei" from the ALIEN 3 soundtrack

jobel's avatar

jobel

Member since 27 Jul, 2013

Twitter
jobel has 8 followers

Connect with jobel

Trophy Case

  • 11-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • x4
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

18/44
How to earn trophies