Hey there BB3 users, just finally getting the chance to play around with BB3 and I think I maybe missing the obvious, but I've watched all available videos and the help files too and still can get my simple cube character to move left and right when I touch the screen. I can attach a move node and get the character to start rolling forward (great) but also want to have hime move left and right on touch. Can someone please point me in the right direction as to which move node I need to use that has both left and right controls, it's driving me nuts, as I can only get him to go one way with move. Many thanks.
It's going to be the status quo to post an image of the node setup in question to be able to help people. There are too many variables that can effect the outcome of a particular setup. Can you kindly do that if my response doesn't work for you? In the mean time, you can try a Touch Move node if I understand what you want to do. Attach it to the Start node, separate from the Move node.You will want to change the number of the axis you wish to be able to move in. So left and right would be X axis.
Yup, good point @jmiller8031, uploading an image is a good idea at these early stages. I've been looking at a few of the presets to learn what nodes are being used for character movement, but nothing seems to be the same in my control options. I think perhaps some of them have been tweaked with Javascript. Here's a pic of one of the methods I've tried for simple left, right, character movement.
Forgot to mention, that "Touch Move" sets a speed for the 3 axis, so as you mentioned, left and right would be on the X axis, but you would think BB would auto set this to a usable value, but the default 1 is just bonkers, it flies off the screen. I've set it to 0.25, but movement is ugly and jerky, so my guess is, it's not working properly just yet.
Looking at the "Leap" preset, this has the character left, right movement I was trying to achieve with the cube and the node labelled "Touch Move Ph" is a touch move node with some additional JS, so I think perhaps that answers my question. If you compare the JS to a fresh touch node, you'll see the code is different.
You're model scale is waaaaaay off if 1 is too fast. Look at the Fly preset. It uses Move and Touch Move in unison.
The model is the preset red cube set at 0.25, so it shouldn't be way off at all. The fly preset has the correct movement I'm after, but once again, it uses a modded touch move node. So anyone like myself who doesn't know JS, cannot make a similar movement using the standard node. Hopefully this will change shortly.
My bad. You're right. Touch Move in Fly is using the Update function to smooth out the movement over time. You need to copy and paste that into what you want. The issue is that you need access to a way to control the speed of things over time and that is exactly what the Update function is. It is called every frame of the game as it plays. It's the perfect candidate to do movement speed math. If you're worried you'll miss anything important when you copy and paste parts of code you can just copy and paste the entire code in this instance. The underlying functionality of the node is the same and it was just slightly modified to work over a set amount of time.
Hey a quick question ,Referring to screenshots above is Beta different for each subscription model ? Plus/Indie/Pro ?Because i couldn't find ifCollide,touch etc option/nodes as in screenshot.Am i missing something ?
Great to have a coder onboard @jmiller8031 I don't code myself, but want to learn JS, as the potential inside of BB3 alone, is hugely exciting for the future on our game development. I took a couple of screenshots of the code and did an A - B comparison to see what I could understand and I can see the differences, but don't yet fully understand what they're all trying to achieve. Can you recommend any good online resources, for learning the kind of JS required for BB3? I read that not all JS is equal and only certain parts would be useful in BB3. Thanks for the "Update Function" explanation, much appreciated.
I don't know @TheGameAppStudio to be honest. I wouldn't have thought so. The 'ifCollide' and 'Touch' nodes are in the left menus after you've double clicked on Character/Actor. Here's a couple screenshots for clarity.
Hey Thanks for the insight .I was thinking since the launch of BB3 beta on how to add these functions without touch and jump option for a game and never cared to double click any object on left panel.I just kept bb3 aside and planned to look at it after few days Thank you once again and yes i too see those options now
JavaScript.com is a decent resource from what I’ve seen. It’s owned by pluralsight and they are like a more professional version of Udemy. Just skip any web development stuff. You’re going to find a lot of web dev tutorials for JavaScript since it’s mainly used for that. You don’t need that knowledge for game development.