Yann's Recent Forum Activity

  • Hum I was wondering guys. Maybe a 2 hours non stop video is really too much to follow through and splitting the video into chunks of 15 minutes like the first one might help people to follow small sessions at a time. What do you think?

    The splitting of the first video was a n00b move on my part. When I uploaded it from twitch I got a warning that the upload might fail if my account didn't accept big videos, that's why I choosed to split them up. But it turned out, my account was ok with big videos.

    On another topic Tobye it's funny, what you are doing int the ilsplayer looks to me that you are kindof mimicking the behavior of a dictionary object (aka hashtable).

    In short you are inserting (Key,value) pairs like that

    inLevel(someIndex,0) = "X"
    inLevel(someIndex,1) = valueForX
    inLevel(someIndex,0) = "Y"
    inLevel(someIndex,1) = valueForY
    ...

    And since you use .indexOf, I guess you are assuming the 'X' and 'Y' keys will be unique in the array.

    So it would be the same as doing:

    dictionary: add key "X" with value valueForX
    dictionary: add key "Y" with value valueForY
  • Try Construct 3

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

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

    Alright

    Do you have an example of data you want to store?

    Like, do you have strength/dexterity/speed/hp/mp and position on the map, or, I dunno, or do you have more than that?

    Gimme some more spec so I can narrow down the problem (:

    Tell me what you think about the last vid on array if you have the courage to watch it :D (2h30)

    Maybe you can find the beginning of an answer inside.

  • Whiteclaws

    Lucky you, I don't :D

  • Alright new vid on arrays. Trying to take a new approach by remaking the system to understand and hopefully help you to understand how they work.

    A bit long and complex but hopefully you'll get some insight and some french words (:

    Mimicking Arrays:

    Subscribe to Construct videos now

    - twitch

  • WOW success *_*

    Thanks guys for spamming my mail with your youtube subscriptions (:

    Tobye

    Using Webstorage ?

  • Hey there, I'm starting a channel on twitch mirrored on youtube.

    http://www.twitch.tv/frenchyann

    http://www.youtube.com/channel/UCkBYP-bYZSd8Uf47hPbMx1w

    The goals of this channel is to share some workflow/process/insight/bad jokes on how I would solve a given problem with C2 and also to show some ideas or concepts.

    This is by no mean a "tutorial" channel. Unless otherwise specified, the videos I'll post won't be tutorials. They will be mostly unprepared and unscheduled C2 related tests and ramblings, and of course they will feature dumb mistakes and blunders.

    And they probably won't be for total C2 n00bs.

    However, since I'll be using twitch, you'll be able to join me live and ask questions (you'd better follow me on twitch if you want to catch the broadcast ;p). I probably won't answer all of them, and I'll try to make each session not too long.

    Broadcasts sessions will probably be totally irregular :D (maybe I'll make 3 sessions and then nothing for 2 months). It's mostly a "when I feel like it" kind of rule.

    The first video (split into 6 on youtube) is my answer on a simple problem: "UI selection marquee tool".

    Since the 9-patch appeared in the last C2 release I thought it would be a good opportunity to show it off.

    Feel free to comment here, on twitch or on youtube (but if everybody comments here it's easier to follow)

    And also, you can propose some subject for futur videos.

    I probably won't cover too broad subjects, like "how to make a game hm?", or subjects that already have tonnes of tutorials, like how to make a break out or a platformer...

    Cheers o/

    Video list:

  • Yeah in theory, but I have yet to see a concrete application of "dynamic collision" you can't achieve with a few sprites.

  • Ethan

    yeah I dunno how hard it would be, and to me it would make more sense to be a behavior on top of this plugin than a feature inside the plugin.

    And also remember that drawing polygons is expensive. By looking at the "you shouldn't do that" 3D demo where there's like 30 polygons it's already quite slow (:.

    Jasper

    Heheheheheh asking for new features are you? :D

    I was thinking about that. I left that aside since I didn't need it and I wanted to make it work nicely without worrying about textures (tiling/not tiling/... etc).

    But we'll see if I can do something about it. I'm starting to get the hang of C2's SDK.

    Don't expect it too soon though, but if you see that in one month I still didn't try you are allowed to ask again :D

  • ludei thanks for the info (:

    And yeah as far as drawing goes, I use the canvas context fill/stroke javascript functions and in webgl mode I copy the texture to the webgl context.

  • Another way to see it, it that, if you have to sort all your data, you'll have to manually swap each value (movement, rate of fire, etc)

    I would use two arrays:

    one with the data

    one for sorting.

    An also, if you want so use push, you can serialize your data in one string

    here's how I would do it:

    scoreData.capx

    just input data like that:

    100 0.5 20.4

    (being movementSpeed, rateOfFire, stayedAliveFor)

  • I made a slight little change on the plugin.

    The clear action was clearing the vertex list and its canvas but the texture wasn't updated.

    Now it works as expected (:

Yann's avatar

Yann

Member since 31 Dec, 2010

Twitter
Yann has 5 followers

Connect with Yann