ambiera home ambiera home

Ambiera Forum

Discussions, Help and Support.

Create a new account, Search, or Login:
Name:  Password:    
Ambiera Forum > CopperCube > Announcements and Showcase
pls help me
Author Text

thanhtoanhb
Registered User
Quote
2018-03-12 06:29:58

animated..


I want to know how to use the cursor up, down or left, right and the character moves with animation ? ?




just_in_case
Registered User
Quote
2018-03-12 21:52:07

Just attach a behavior to the player character moved by keyboard.... And select the animation you wanted to be played for walk run and jump....

And now when you emulate the 2d touch overlay it will move accordingly with the animation...

With cursor up and down player will show movement while with cursor lwft and right it will rotate...

It all depends on how you setup your player...


thanhtoanhb
Registered User
Quote
2018-03-13 12:12:26

Can you give me an example?


just_in_case
Registered User
Quote
2018-03-13 16:37:18

yes! sure here is the link to the example file it uses a cursor and animated soldier prefab..... which can be moved using the cursor!

https://drive.google.com/file/d/...


thanhtoanhb
Registered User
Quote
2018-03-14 16:42:21

thanks for your help, but i want to make a FPS game like counterstrike and the character move by cursor like the picture !


just_in_case
Registered User
Quote
2018-03-14 17:42:40

Just make the hands, child node of the fps camera... And asign behavior on key pressed do something....

For example on pressing key 'up' change the animation of a scene node... Select the hands choose the desired animation....

Do same for other keys also...

There may be more ways to do this... But its midnight and am a bit tired.... Will provide you with a ccb file tomarrow...

With example of an fps game moving with the touch controlled cursor..


thanhtoanhb
Registered User
Quote
2018-03-15 06:29:49

I am waiting for your help every second :) This is animation file

https://drive.google.com/file/d/1QC12jgZOmt7lyQ44i2zIE7Q6xEf_67J9/view?usp=sharing


just_in_case
Registered User
Quote
2018-03-15 07:52:45

well here is the another CCB file showing movement using arrow keys for an fps camera...

all you have to do is to attach the game behavior, object or person controlled by keyboard to the animated player and change the value for move speed jump speed and run speed to Zero...

that's all..

and the file you provided doesn't have textures and to use that file i have to edit the animations too with the animation editor as no action has been there...
doing all this wil surely consume a lot of time ...so i used the pre-built coppercube animated soldier with a fps camera...

https://drive.google.com/file/d/...


thanhtoanhb
Registered User
Quote
2018-03-17 03:16:16

hi there ! An error occurred when touching the screen space....



https://drive.google.com/file/d/1DKRTdCA4lDZ4FjvG6HAiPIfOuPQ9nSEg/view?usp=sharing


just_in_case
Registered User
Quote
2018-03-17 05:26:15

What kind of error... I didn't find any error all controls are working fine....


thanhtoanhb
Registered User
Quote
2018-03-17 10:02:20

When you swipe up the screen .... the character performs the action shoot, instead of having to touch the button to hit


just_in_case
Registered User
Quote
2018-03-17 15:42:17

i read your ccb file and found that you are using on left mouse click shoot action... which is emulated as a touch on anywhere on the screen.. i have modified your apk and changed the left mouse click to...
keypresed "G" to shoot and then using an overlay to emulate that key...

here is the link to modified CCB and APK...

https://drive.google.com/file/d/...



Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internati?nal" (you are not logged in)


Text:

 

  

Forum Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   





Software: Ambiera Light Forum. © 2008-2018 Nikolaus Gebhardt, Ambiera e.U.