AnD4D's Recent Forum Activity

  • Just a quick question.

    Using the bounce function as an example, is there a way to determine when the sprite initially bounces? It would be nice to be able to put some sound effects in. In my game, it's not colliding with anything, so I can't just wait for a collision. It's more of a menu feature, so it just drops into place.

    I'm looking at the conditions associated with it, and wonder if it's in there. I feel I may need to start experimenting... but it's probably something like 0.5 on the first collision, 0.75 on the second and so on and so forth.

  • 99Instances2Go

    Sorry, that was just to represent what I wanted. Perhaps I should have used letters rather than numbers to better demonstrate.

    A,D

    B,E

    C,F

    or

    A,B

    C,D,

    E,F

    It really didn't matter what the data contained.

  • Thanks

    That's what I ended up doing. I've been using Pop to restructure arrays for so long, I hoped I could do the same for an individual element. Oh well. It works perfectly, it's just not that one line solution I'm so fond of.

  • Does anyone know how I can have and manipulate an array with lots of data, similar to the below representation:

    1,6

    2,7

    3,8

    4,9

    5,10

    So in the above, it's showing a width of 5 and a height of 2. Imagine the height going on for 50. Also, imagine that I want each element to have a depth of 3.

    See, lots of data.

    Now, just using the example, say I want to completely remove the number 3 from the array, and have the number 4 move up 1 element, and the number 5 do the same. Do I need to do this manually, or is there a smart way of manipulating an array in this fashion? As I said, it's going to be a big array with lots of depth elements as well. I'd rather not have to require a manual movement.

    I want the array to recognise when an area of itself is now empty and have its remaining elements move up the array to fill in the blanks. Keep deleting, and you eventually end up with an empty array.

    By the same token, if the array was empty, if you put something in the bottom, it'll quickly make its way up to the top.

    Hope I've made sense...

  • youtube.com/watch

    Is that your video? It doesn't answer the question even slightly! Why on Earth would you link someone to that?

    The question was how do you get the X and Y position of an object based on an object's UID. The video just shows an event that says "If A collides with B, destroy UID 3"...

  • Sorry, I don't know how to show an increase without the addition of more decimal points or an increase in revenue.

    I don't believe it's possible. How would it work in the real world?

  • Hi guys, I´m not sure if this is a good place to ask, but does anyone know a good way to show 1.5 k gold intead of 1500 gold? And change abbreviation as the number goes higher? Also I don´t know exactly how to search this on google, I searched number abbreviation and found this tread.Thanks!

    Let's say you have a variable called GOLD. What I do now, is...

    event (If GOLD > 999 & < 10000)

    Action (Set text to left(str(GOLD),1))&"."&mid(str(GOLD),1,1))

    Something like that. Using lefts and mids is a lot easier than having multiple functions and variables.

  • Is this likely to go on sale anytime soon?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Not sure why this one just got flagged to me... There isn't a new post here, but curiousty made me look at aruche 's profile. Apparently he's visited this site for the past 307173 days in a row. Brilliant how he's managed to do it for almost 850 years! Fair play to him Tom!

  • I try not to use a for each loop, as it tends to slow my games down. I suppose I could add a time to it to limit the number of loops... less accurate, but it has potential.

  • First pick the highest, then save that value to another variable. Then in a sub event, pick all, then pick by conditions, and then you can use the saved value to compare against with a system - compare values.

    Yeah, I came to the same conclusion after I'd posted, though I had hoped for a single event solution without the need for a variable.

    Thanks though!

  • I can set up an event that reads "If object var is highest - Do something".

    I'd like to be able to have an event that will do something to an object if it's variable NOT the highest. I can check for lowest, but that doesn't cut it. It's a pick event, so it won't allow me to simply invert.

    Did a search on the forums, but couldn't see anything.

    Any help is appreciated.

    Thanks!

AnD4D's avatar

AnD4D

Member since 4 Nov, 2011

Twitter
AnD4D has 3 followers

Connect with AnD4D

Trophy Case

  • 13-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
  • Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

20/44
How to earn trophies