justinl's Recent Forum Activity

  • Thanks linkman2004! I've started getting my hands dirty and have a few questions I thought I'd post out here.

    Question 1: MFC Link Error

    I followed the steps on that thread about getting the ATL and MFC requirements to work using VS 2008 Express. It's working great and I can compile the template and some of the behaviours. However, for one of the main behaviours I'm trying to disect (8 Dir Movement), I'm receiving the error:

    LINK : fatal error LNK1104: cannot open file 'mfc42.lib'

    Any thoughts on how to get this reference working?

    Question 2: Referencing an external object from inside the behavior code

    I'm attempting to write a series of behaviors for the different enemies I have in my game. For example, for some enemies, I'd like them to attack the player object if the player comes within 100px of them (very simple behavior. The 100px parameter will probably be something the designers sets in the Constructor interface). I'm curious how I can reference the player object from within the behavior C++ code that I've applied on my enemy sprite. There will always be only 1 player object (named "Player"). I'm familiar in the past using AS3 to do something such as "if(object is of class Player){ //then do something}" But I'm not sure where to start.

    This is of course all very easy to script using the event sheet, however I don't want to have to copy this block of event sheet code onto all of my different layout "levels". And if I make a change to the behavior, I'd like to only make that change in 1 place and then it updates onto all the enemies in all of the levels where I have applied this behavior.

    Thank you!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks linkman2004! I'm fairly new to C++ but come from a PHP, Javascript, AS3 background so I hope the learning curve won't be too painful.

    Are behaviors written much differently than plugins? Are there any major changes I'd have to make while following that plugin tutorial for making my own behaviors instead?

    I tried to compile the 8 Dir Movement and the Platform behaviors and it would appear that I need either MFC or ATL (which doesn't come with the Free Visual Studio Express). Is this true?

  • Hello Tulamide! Thank you very much for posting the link! Is there any documentation anywhere regarding how to code, compile, and apply custom behaviours (via the behaviours tab in the object properties panel)? I've searched via Google and around the forum but have found very little resources on how to code anything outside of using the events sheet.

    I'm also interested in writing plugins but have found very little regarding documentation. I'm sure it's around somewhere but since the switch to Construct 2, it seems that some resources have become more difficult to find.

    Or alternatively, where can I view the un-compiled Behaviour scripts?

    ps - I'm working with Constructor Classic, not Construct 2

    Thanks in advance!

  • Hello!

    I'm looking to dive into the Construct Classic R2 SDK. Is it available for download anywhere?

    Thanks,

    Justin

justinl's avatar

justinl

Member since 30 Jul, 2012

None one is following justinl yet!

Trophy Case

  • 12-Year Club

Progress

12/44
How to earn trophies