Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > CopperCube Open discussion
I NEED HELP!!!!!!!!!!!!!!!!!!

edwin123
Registered User
Quote
2022-09-04 16:16:44

i'm making a LAN game in coppercube 6 but i do not know how to make it so you can do this : use all guns (shotgun), use a flashlight , and shoot something and it goes away , Pls help me!!!!!


sven
Registered User
Quote
2022-09-05 11:19:36

there is many multiplayer examples in this forum you can download and learn from.
Making multiplayer game is not a simple task - it needs knowledge how it works before you can start making it .
I use google to study before i start project that i am not familiar with.

My example that i made uses server and client programs that i coded in freebasic .. to communicate with coppercube it uses file read and write.. it works actually pretty good and example uses many events like player got killed.. light switch..door..spawn object and more.


edwin123
Registered User
Quote
2022-09-05 15:47:26

i did the lan.. i think , but do not know :use all guns (shotgun), use a flashlight , and shoot something and it goes away


edwin123
Registered User
Quote
2022-09-05 15:52:05

But can you give me a link of it?


sven
Registered User
Quote
2022-09-05 16:30:33

my multiplayer example
https://m.youtube.com/watch?v=lz...
download link in video description.
also server /client sourcecode is downloadable on my itch page for free.

in my example.. if player 1 shoots player 2 .. then in player1 window i confirm it.. so action on hit will send out event.. and player 2 recieves it and takes a hit. its a simplest way to do it but may not be best way. now if player 2 health is 0 .. it sends out message on action on die.. player1 recieves it and removes dead player. player 2 will respawn. position data will be sent always and events only if they happen. weapon change is same.. send event about change and depends on event switch weapons ..

simplest way to start network game is make a simple chat system.. so you can send out commands. example if you send message play sound(music.mp3) then everybody gets it and parses it.. as command PlaySound parameter music.mp3.. in javascript: if command = PlaySound then ccbplaysound(parameter)

in my example js you see how i handle commands..
doesnt matter what networking you use you can use similar method.

as you sayd you have lan game made already so i expect you have players and theyr position data will be sent and recieved.. similar to pos data send out event data

i write this reply on phone so i have no idea does it makes any sense.. will edit later if i use pc.


edwin123
Registered User
Quote
2022-09-05 17:06:04

Okay thank you


edwin123
Registered User
Quote
2022-09-05 17:08:13

i looked at this before i really liked it im a fan of your work


edwin123
Registered User
Quote
2022-09-05 17:28:07

is what im working on pls tell me if you like it



https://drive.google.com/file/d/14brKyZ5i6VAyrmQDRk6BtovxMM4vBCyq/view?usp=sharing


btw this is only 2 days old


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internatio?al" (you are not logged in)


Text:

 

  

Possible 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


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact