DUTOIT's Recent Forum Activity

  • You do not have permission to view this post

  • Perhaps wrong word on my part. Template probably better word. I used engine because it can drive various board games, well that is what I am trying to do, within reason of course.

    And yes, I am planning on implementing AI, so can be a single player game too. (this is where I will probably have to employ someone as I am not very good with AI.)

    There are a number of tuts in tutorial section. Which cover token movement to cards etc

  • I'm building an engine for a client, and currently porting it to multiplayer - works flawlessly so far.

    So can absolutely be done.

    See screenshot

    [attachment=0:1yuylleq][/attachment:1yuylleq]

    ... not pretty, it is strictly functionality (board game template that game concepts can be plugged into).

    8 players max

    Turn based play. Random dice. Auto token movement based on dice throw.

    Currently only 1 set of cards, but plan is to have 8 sets (its a template for future board games)

    Haven't built in money yet, client not sure if he wants to go that route or make it part of GUI

    But it is totally possible. It is going to take you some time as nothing is written tutorial wise that caters specifically towards this type of game, so you are going to have to figure out a fair amount by yourself using what's available and molding it to your current needs.

  • DUTOIT

    I though you were taking a well-deserved rest, man!?!

    Just can't stop yourself, huh

    Lol, its habit, but I will be cutting back a lot...

  • Good reading material

    Screenshots of what manual says:

    [attachment=2:17d6zucb][/attachment:17d6zucb]

    and in practice...

    [attachment=1:17d6zucb][/attachment:17d6zucb]

    You can also create a primary event sheet and use includes which include eventsheets. THis is nice to do, for example

    [attachment=0:17d6zucb][/attachment:17d6zucb]

    So you can place all your global variables in one event sheet and include them.

    But answer your question click layout properties drop down menu will list event sheets to associate with layout.

  • All seem to be promising. Looking forward to see some games

    DUTOIT

    Funny avatar, Bud. Hard to speak to a spider now and not to a Baby anymore. Need to get used to that.

    Yip, ran into some issues with fellow member(s) and scirra not banning trolls from months back. Not a place to show my babies face anymore.

    I am also taking time out/back seat from helping out, will still help, but drastically less.

    Anyways, I needed a image quick - I'll put a new one, better one at some time

    Edit: added new one

  • What is the theme you're fancying the most ?

    My Top three are...

    You are the world

    or

    You are your own enemy

    or

    Everything connected

  • What bluephaze said.

    You can compare the two and if score > BestScore then

    BestScore = CurrentScore

    webstorage set local key "bestscore" to bestscore

    Highscore text = Set "Best:"&BestScore

    (something like that)

    And remove the bestscore stuff from ? mark piece.

    I use functions as I can reuse the code over and over and over. Maybe a little too advanced for now.

  • 2retro

    You must only change best score if current score is greater than best score.

    I would create a function called savescore.

    Savescore does this...

    BestScore = CurrentScore

    webstorage set local key "bestscore" to bestscore

    Highscore text = Set "Best:"&BestScore

    (something like that)

    then

    You can compare the two and if score > BestScore then

    Function: savescore

    Well something like this...

    Reason for issue: You are adding 1 to both score and bestscore where you should only be adding 1 to score and when score is better than bestscore, store score as new best score.

    Sorry, I wrote this quickly, its late here, hope its not to confusing - lol

  • Hi 2retro, got your pm, I am taking a break from helping in forums due to some members who pushed too far.

    I see you got a reply. So just to add to it int(x) changes to whole number and str(x) changes to string. X being whatever you want to change.

    Recommend reading this as it is the most important page in the manual - lol.

    Good luck. And you are welcome, glad the example capx helped you a bit.

    Remember that highscore will only be for that player, meaning each player will have their own highscore. Web Storage saves on players pc, not on the web.

    You can also change your variables to text instead of numbers then they will store as a string too. But remember if you want to treat them as whole numbers you must convert them to numbers (for calculations etc they will need to be numbers, else if for display purposes, then text (string) is fine.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • That's kind of like that Star Trek episode where the aliens only spoke in metaphors.

    If you don't know what the metaphor is referencing it means noting to you.

    Basically its out of scope to the computer.

    Lol.

    ...is looking for an expression that turns a string into a variable. No such functionality exists in C2

    Oh, I missed that, yip, no such functionality, I think your dictionary suggestion is right on target. Dictionary is a great choice as you can create both "name" and "key" so will suit this much better.

  • > megatronx,

    >

    > Screenshot of blackhornet capx.

    >

    > It does work.

    >

    Thanks for that.

    blackhornet I can see now that there must be some misunderstanding. Basically tokenat(Item,ItemDat_Stat,"'") is returning the name of a global variable ( for example PlayDat_HP ), that holds a number. And I want to access that number within that call.

    tokenat(Item,ItemDat_Stat,"'") -> PlayDat_HP -> varPlayDat_HP -> Number [/code:1lqkcohk]
    
    @Ashley We do not have some kind of forcing string "" in to calling a var of the same name? Something like var("PlayDat_HP")?
    

    NP,

    And itemDat_Stat is a variable right? And have you checked that variable is a number not text.

    I see you using itemDat_Stat as an index which requires it to be a number.

    Edit: I am going to have to play around a bit. Will look at this a little later

    Can you put together a small test capx just dummy variables with itemdat_stat and the tokenat culculation. I will try and mess around with it. Or a little more detail so I can build a simple example.

    Also regex might be a better fit for complicated searches etc

DUTOIT's avatar

DUTOIT

Member since 17 Jul, 2013

None one is following DUTOIT yet!

Trophy Case

  • 11-Year Club
  • x5
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Email Verified

Progress

14/44
How to earn trophies