vee41's Recent Forum Activity

  • Save the parent UID in a local variable before spawning the new object, this way you can refer to it with 'pick UID with variable_here' condition. Depending on how many variables we are talking about it might be simpler to save the variables themselves into local variables before spawning the object and then assign them from the local variables :)

  • Add pick All condition in subevent below condition, put Your actions there

  • That's a bit broad question, you should learn basics of c2 So you'll have a decent idea of the problem yourself. After that you could come to the forums asking a solution into something more specific :-)

  • If you bought the game through steam I hear there is no link to download those, email support to receive the download link.

  • When firing bullet you'll have to give it a target position (or 'force' if you are using physics). I guess you are targeting player the whole time bullet is moving, while you actually want to target the position player is at when bullet was fired.

    Give bullet variables TargetX and TargetY where you save the bullets target location the moment bullet is fired and use these rather than player.x and player.y.

    This was just a guess, post a .capx of your problem so we can actually see what is happening :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi guys and gals,

    So I've programs previously so I'm familiar with functions, I like the way I can group up code and call it when I need to so I'm not cluttering up my screen. When I code in construct 2 I'm not sure how divide up my code.

    Personally I prefer using lots of Groups to group things nicely. For example I have group called "Interface" that holds everything related to interface in it. "Controls" hold everything related to player controls. "Enemy Logic" could be stuff the enemies do and so forth.

    Lot of the time I find functions unnecessary, although they can be nice way of dividing your code into high level events that are executed in the functions.

    Combination of these works best for me: Grouping simple events (simplified via functions if necessary) into logical groups. So you have the 'high level' logic neatly as one single list, and all the dirt and detailed functionality in the functions or related events.

    These are just my personal preferences, hope you find some help in there :)

  • There is 'global' switch for every object, turn that on and object will persist through layout keeping it's variables and stuff. :)

    EDIT: wretchedshark For some reason I read question was about global variables as well the first time :)

  • What they said. :)

    I found it really hard coming into C2 with coding background. But when you realize that you don't actually have to think in grassroots level and can focus much more on the designing aspects it'll be sweet, I promise :)

  • Couldn't you compare positions, averaging the result as a variable then set the speed to this value ?

    Exactly, something like: Bullet.Speed = floor(distance(bullet.x, bullet.y, target.x, target.y)-stopDistance could work. Also add an event that rounds it to 0 if it goes negative. :)

  • Should I consider the absence of answers means it's impossible ? or is my question not clear ? ^^

    Question : Can I use parts of a sprite sheet as individual objects in C2 ?

    or maybe: Can I use CSS code sprites in C2 ?

    I foresee that I will have to manually extrude each sprite from my sheets... what a pita -_-

    Googling something like "divide sprite sheet" should give you easier solution than doing it manually :)

    Something like this would be usefeul I'd imagine.

  • Could you post .capx or image of the problematic events?

  • > Problem seems to be caused by the fact that all your zombies are initially walking to the right(speed 30 is towards right) and facing left. You could either rotate them all to face right initially, or change their initial angle of motion to left.

    >

    > Nothing wrong with moonwalking zombies though! :)

    Thanks alot! I managed to solve all those moonwalking zombies :)

    How do you find my game? :)

    Really nice graphicstyle, great castlevania vibe! Looking forward to playing finished version :-)

vee41's avatar

vee41

Member since 12 Apr, 2012

None one is following vee41 yet!

Trophy Case

  • 12-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

14/44
How to earn trophies