paulscottrobson's Forum Posts

  • One other alternative is 3D modelling, which you can render as 2D. I cannot draw at all, but I have found I can model relatively simple things, and the 3D software takes care of the shadows and such like.

    What sort of game are you currently making ?

  • That's about 200 things on your horizontal axis which would seem to be tough to distinguish. If you want columns, the simplest way would be to create a single sprite and colour it using web effects, or to create one bar for each colour, and just scale it and clone it as you need.

  • I'm not sure this is a good way of doing this. Would you be better off setting a repeating timer and having a counter of the number of times it has fired, then kill the timer when you have done 10 ? Like this ?

    http://www.studio2.org.uk/c2/Spawning.capx

  • Well, yes it's possible - you mean a swipe to select and zoom in/out - yes its possible. How different are the characters - is it basic things like the graphics and some numeric values or are there more fundamental differences ?

  • A spin off of my figuring out Construct 2, a version of Galaxians and Asteroids with a commentary on how they work. http://myconstruct2dev.blogspot.co.uk/, sources are available in github.

    Have a list of about a dozen games starting with squash and working up these are #4 and #5 respectively, the preceding ones are a bit dull

  • Do you mean the sort. Of thing you would use a strict for in c ? Unless JavaScript's runtime does this, you probably can't, it uses 64 bit floats

  • Can't try it at the moment, but could do it with tree collides with tree - don't know if this works,if it does reposition it,or in my example deleting the tree will make it appear elsewhere, also this will help balance trees at sdpawn points

  • I think so, its a level up. Check it, set the opacity to33 in one and see if they all go.

  • Probably not. It appears to be a plugin.

  • If by "on screen" you mean on the layout there is a global value for the number of pillars ; Pillars.count

  • Not quite sure what you are trying to do here - you want the laser height to pulse up and down following the sine wave, right ? You can do that by just setting width rather than size. Your actions are having a punch up between each other about who actually controls the height and width at the moment.

  • I'd agree with Yann.

    One slightly misleading claim about C2 is that it "doesn't require programming" ; it doesn't per se, no, but it does require a lot of similar thought processes and organisational skills. Anything of any complexity will require a similar mindset.

  • The thing about LocalStorage is its asynchronous. You can't just do what you'd normally do, read and write data on demand.

    Local Storage is a bit like interrogating a rather slow person on the other end of the phone e.g. to get (say) a high score

    1) Action "Check Item" (Ask it if the high score exists) by key (e.g. "myGameHighScore")

    2a) On event "On Item Missing" (No), set the default high score

    or

    2b) On event "On Item Exists" (Yes), then action "Get Item" (ask what the value of "myGameHighScore" is)

    3) If you asked "Get Item" On event "On Item Get" (Here it is) you can retrieve the actual value (from ItemValue member)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • On every tick, if the key is down increase the size by adding or multiplying something to the current size.

    The event thing is run repeatedly every second, so you actually don't want to do anything when the key is up, you just want to change the size when the key is down.

    Do not forget to adjust for dt

  • Well, the problem is that indexOf and lastIndexOf only work on single rows. You could scan through with a loop, but my preferred solution would be to have a key.

    e.g. suppose you have an array 3x2 or more

    Joe, Smith, ...

    Fred,Bloggs, ...

    Jane,Jones, ...

    Now create another array which is a combination of those e.g. a 3 x 1 array, by concatenating the two parts with a semicolon and making it all lower case.

    joe;smith

    fred;bloggs

    jane;jones

    then if you want to search on a pair, you can look for jane;jones in the key array and the index returned by indexOf should be the same as that in the 3x2 array. You have to be careful that if you manipulate the data array, you synchronise the key array with it. Partly how you do this depends how much your data changes.

    This is (incidentally) how you used to do database systems before SQL became popular in the 1990s.