piranha305's Recent Forum Activity

  • So construct arrays are java script objects with some metadata about the array, i was wondering if any one has come up with an alogirthm to convert that json to a pure Java script array and back? I'm asking so I don't have to reinvent the wheel if its been done before.

  • true and false is suitable, but if I wanted the result of that bool to be dynamic based some other conditions I can't do it in line the action for set bool takes a hard-coded value for true and false... In order to do what I want I can use a function with sub events and based on those sub events set the bool... It just seems like alot extra work for something as trivial as setting a value.

  • Is it possible to set a bool from an expression or from another variable, when I go set a bool I get a drop down with true and false. How can I make that bool dependent on something else or pass in a string "true" or "false" and just cast it, do i have to use an int? 0 1 to dynamically at that value?

  • You do not have permission to view this post

  • what is the purpose of having this trigger once after the input checking?

    [Player Walk]

    // Allow the player to move in 8 directions but only change directions if a single direction is being pressed.

    Keyboard and Gamepad controls are exclusively separated here to simplify things.

    // Keyboard

    ----+ Keyboard: ↑ is down

    --------+ Keyboard: [X] ↓ is down

    ---------> Player_Base: Simulate 8Direction pressing Up

    ---------> Player_Mask: Set Walking to True

    --------+ Keyboard: [X] ← is down

    --------+ Keyboard: [X] → is down

    ---------> Player_Mask: Set Direction to "Up"

    ----+ Keyboard: ↓ is down

    --------+ Keyboard: [X] ↑ is down

    ---------> Player_Base: Simulate 8Direction pressing Down

    ---------> Player_Mask: Set Walking to True

    --------+ Keyboard: [X] ← is down

    --------+ Keyboard: [X] → is down

    ---------> Player_Mask: Set Direction to "Down"

    ----+ Keyboard: → is down

    --------+ Keyboard: [X] ← is down

    ---------> Player_Base: Simulate 8Direction pressing Right

    ---------> Player_Mask: Set Walking to True

    --------+ Keyboard: [X] ↓ is down

    --------+ Keyboard: [X] ↑ is down

    ---------> Player_Mask: Set Direction to "Right"

    ----+ Keyboard: ← is down

    --------+ Keyboard: [X] → is down

    ---------> Player_Base: Simulate 8Direction pressing Left

    ---------> Player_Mask: Set Walking to True

    --------+ Keyboard: [X] ↓ is down

    --------+ Keyboard: [X] ↑ is down

    ---------> Player_Mask: Set Direction to "Left"

    // Gamepad

    ----+ Gamepad: Gamepad 0 D-pad up is down

    --------+ Gamepad: [X] Gamepad 0 D-pad down is down

    ---------> Player_Base: Simulate 8Direction pressing Up

    ---------> Player_Mask: Set Walking to True

    --------+ Gamepad: [X] Gamepad 0 D-pad right is down

    --------+ Gamepad: [X] Gamepad 0 D-pad left is down

    ---------> Player_Mask: Set Direction to "Up"

    ----+ Gamepad: Gamepad 0 D-pad down is down

    --------+ Gamepad: [X] Gamepad 0 D-pad up is down

    ---------> Player_Base: Simulate 8Direction pressing Down

    ---------> Player_Mask: Set Walking to True

    --------+ Gamepad: [X] Gamepad 0 D-pad left is down

    --------+ Gamepad: [X] Gamepad 0 D-pad right is down

    ---------> Player_Mask: Set Direction to "Down"

    ----+ Gamepad: Gamepad 0 D-pad right is down

    --------+ Gamepad: [X] Gamepad 0 D-pad left is down

    ---------> Player_Base: Simulate 8Direction pressing Right

    ---------> Player_Mask: Set Walking to True

    --------+ Gamepad: [X] Gamepad 0 D-pad down is down

    --------+ Gamepad: [X] Gamepad 0 D-pad up is down

    ---------> Player_Mask: Set Direction to "Right"

    ----+ Gamepad: Gamepad 0 D-pad left is down

    --------+ Gamepad: [X] Gamepad 0 D-pad right is down

    ---------> Player_Base: Simulate 8Direction pressing Left

    ---------> Player_Mask: Set Walking to True

    --------+ Gamepad: [X] Gamepad 0 D-pad down is down

    --------+ Gamepad: [X] Gamepad 0 D-pad up is down

    ---------> Player_Mask: Set Direction to "Left"

    ----+ Keyboard: [X] ↑ is down

    ----+ Keyboard: [X] ↓ is down

    ----+ Keyboard: [X] → is down

    ----+ Keyboard: [X] ← is down

    ----+ Gamepad: [X] Gamepad 0 D-pad down is down

    ----+ Gamepad: [X] Gamepad 0 D-pad up is down

    ----+ Gamepad: [X] Gamepad 0 D-pad right is down

    ----+ Gamepad: [X] Gamepad 0 D-pad left is down

    -----> Player_Mask: Set Walking to False

    ----+ System: Trigger once

    -> (no actions)

  • has anyone converted the REX FSM plugin?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • okay sweet, thanks

  • wait your not using the compare touch speed condition in your snippet?

  • so the tool tip for Compare touch speed says it can be used to detect a swipe? i looked on the manual but am still confused how i can use this to detect a swipe? does any one have an valid example or uses for this condition?

  • Is anyone else having issue exporting a Debug APK from the current version of the desktop build?

  • https://playcanvas.com/project/440868/o ... /shockwave

    I'm trying to implement something similar in my game with c3, what effect would simulate this? Any Insight as to where I start would be awesome

  • After you save to project to folder, and close the app, how can you reload the project when you open it agian, it's expecting a .c3p file but i'm only getting .c3proj file in the root, but its not opening it with that? is there some i'm missing?

piranha305's avatar

piranha305

Early Adopter

Member since 26 Apr, 2016

Twitter
piranha305 has 37 followers

Connect with piranha305

Trophy Case

  • 10-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • x12
    Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • x13
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x4
    Lightning Draw First person to up-vote a new Construct 3 release
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

20/44
How to earn trophies