|
Author | Topic: Basic Marble Blast Coding Q&A (Read 12,659 times) |
Stal Elite Marbler
     [ss:Default Skin] member is offline
![[avatar] [avatar]](http://localhostr.com/file/GPNXhYh/BattleCruiserAvvy.png)
Let's go there really, really fast. If something gets in our way - shoot it!
![[msn] [msn]](http://images.proboards.com/new/msn.png)
Joined: Aug 2009 Gender: Male  Posts: 1,392 Location: Очевидно, не так ли?
|  | Re: Basic Marble Blast Coding Q&A « Reply #210 on Mar 10, 2011, 11:50am » | |
Nope. You should know this, there are a bunch of new PU's in MBOpal..
|
|
|
Hi Guy Expert Marbler
    TorqueScript Hacking Maniac[ss:Blue Groove (MF)] member is offline
![[avatar] [avatar]](http://higuysmb.heliohost.org/images/spec/nope.gif)
If you can see my avatar, then my server is still functioning.
Joined: Mar 2008 Gender: Male  Posts: 610 Location: Both nowhere and everywhere...
|  | Re: Basic Marble Blast Coding Q&A « Reply #211 on Mar 12, 2011, 10:54pm » | |
Erm, Stal, I coded those PUs. It was a bunch of work, and modified about 6-8 source files.
|
Definitely On-Topic MBP Coding ![[image] [image]](http://i.imgur.com/lqCvtpQ.png) |
|
picklecow10 Beginner Marbler
 member is offline
Joined: Mar 2010 Posts: 65
|  | Re: Basic Marble Blast Coding Q&A « Reply #212 on Mar 22, 2011, 10:46am » | |
Quick question, not sure where to ask it:
Did we ever find out a way to give the player a powerup via console?
'cause I just managed to create a way to do that, and I feel like I read that it wasn't possible to do at the moment. So I wanted to check if nobody knows how to do it, or I'm just insane and never saw it before
|
|
|
Pablo Global Moderator
        PQ Map Engineer[ss:Default Skin] member is offline
![[msn] [msn]](http://images.proboards.com/new/msn.png)
![[homepage] [homepage]](http://images.proboards.com/new/buttons/www_sm.png) Joined: Mar 2007 Gender: Male  Posts: 12,305
|  | Re: Basic Marble Blast Coding Q&A « Reply #213 on Mar 22, 2011, 9:41pm » | |
How'd you manage it?
|
|
|
IsraeliRD Administrator
          Dragon Power Supreme[ss:Default Skin] member is offline
![[avatar] [avatar]](http://img27.imageshack.us/img27/9599/dragonavatar2.png)
Controlling Marble Blast with my mind
Joined: Oct 2006 Gender: Male  Posts: 12,675 Location: Lung Fung Tower, Chang Yang
|  | Re: Basic Marble Blast Coding Q&A « Reply #214 on Mar 22, 2011, 11:31pm » | |
It should be rather easy afaik from what I was taught by Seiz.
|
Dec 1, 2011, 11:19am, perishingflames wrote:Marblefire's post was dripping with so much sarcasm that it was almost offensive  |
|
![[image] [image]](http://img268.imageshack.us/img268/6828/actualpqcode.png) |
|
RDs.empire Respected Marbler
     Silent 3D artist[ss:Phil'sEmpire Skin] member is offline
![[avatar] [avatar]](http://imgur.com/08pGa.png)
We shal RULE the universe once we figure out what is one...
![[msn] [msn]](http://images.proboards.com/new/msn.png)
Joined: Oct 2009 Gender: Male  Posts: 1,200 Location: Under your bed
| |
Jeff Elite Marbler
     torqueScript maniac[ss:Default Skin] member is offline
MBP Leaderboard Moderator.
Joined: Nov 2010 Gender: Male  Posts: 1,559 Location: Kicking people from LBs...
|  | Re: Basic Marble Blast Coding Q&A « Reply #216 on Mar 23, 2011, 6:52am » | |
I am not sure Picklecow. If you dont mind, would you post the code in the DK?
Edit: Where is the variable "$Game::ScoreTime" defined at in MB?
|
|
|
picklecow10 Beginner Marbler
 member is offline
Joined: Mar 2010 Posts: 65
|  | Re: Basic Marble Blast Coding Q&A « Reply #217 on Mar 24, 2011, 9:51am » | |
May post the codes in a little bit, but first I'm working on a better random powerup script- something kind of like a item wheel... not really sure how to explain it. Imagine the Mario Kart item system.
Mar 23, 2011, 6:52am, Jeff wrote:I am not sure Picklecow. If you dont mind, would you post the code in the DK?
Edit: Where is the variable "$Game::ScoreTime" defined at in MB? |
|
Not sure where it's defined, can't find it in the game files (may be defined in a compiled script).
It gets a value in the endGame() in Game.cs, in case you didn't already know that/helps you out at all
|
|
|
Jeff Elite Marbler
     torqueScript maniac[ss:Default Skin] member is offline
MBP Leaderboard Moderator.
Joined: Nov 2010 Gender: Male  Posts: 1,559 Location: Kicking people from LBs...
|  | Re: Basic Marble Blast Coding Q&A « Reply #218 on Mar 24, 2011, 10:01am » | |
thanks anyways picklecow.
|
|
|
dobrakmato Advanced Marbler
   C# Code master[ss:Default Skin] member is offline
![[avatar] [avatar]](http://img339.imageshack.us/img339/5932/logowot.png)
Are you a XNA developer? Contact me!
![[homepage] [homepage]](http://images.proboards.com/new/buttons/www_sm.png) Joined: Aug 2010 Gender: Male  Posts: 314 Location: Teraz uvidíme kto to prečíta..
|  | Re: Basic Marble Blast Coding Q&A « Reply #219 on Mar 24, 2011, 7:27pm » | |
How to destroy shape(powerup shape) after colision with marble? Is for there any function?
|
Just an another signature ._____________________.
|
|
Hi Guy Expert Marbler
    TorqueScript Hacking Maniac[ss:Blue Groove (MF)] member is offline
![[avatar] [avatar]](http://higuysmb.heliohost.org/images/spec/nope.gif)
If you can see my avatar, then my server is still functioning.
Joined: Mar 2008 Gender: Male  Posts: 610 Location: Both nowhere and everywhere...
|  | Re: Basic Marble Blast Coding Q&A « Reply #220 on Mar 25, 2011, 6:44am » | |
Like to hide it? Use %obj.hide(true); to hide an object, and run that in Marble::onCollision() in marble.cs.
|
Definitely On-Topic MBP Coding ![[image] [image]](http://i.imgur.com/lqCvtpQ.png) |
|
dobrakmato Advanced Marbler
   C# Code master[ss:Default Skin] member is offline
![[avatar] [avatar]](http://img339.imageshack.us/img339/5932/logowot.png)
Are you a XNA developer? Contact me!
![[homepage] [homepage]](http://images.proboards.com/new/buttons/www_sm.png) Joined: Aug 2010 Gender: Male  Posts: 314 Location: Teraz uvidíme kto to prečíta..
|  | Re: Basic Marble Blast Coding Q&A « Reply #221 on Mar 25, 2011, 7:16am » | |
Thanks, working.
|
Just an another signature ._____________________.
|
|
Hi Guy Expert Marbler
    TorqueScript Hacking Maniac[ss:Blue Groove (MF)] member is offline
![[avatar] [avatar]](http://higuysmb.heliohost.org/images/spec/nope.gif)
If you can see my avatar, then my server is still functioning.
Joined: Mar 2008 Gender: Male  Posts: 610 Location: Both nowhere and everywhere...
|  | Re: Basic Marble Blast Coding Q&A « Reply #222 on Mar 26, 2011, 11:19pm » | |
Hey, does anyone know how to get the exact camera rotation? By camera rotation I mean direction the camera (viewpoint) is facing. I tried using LocalClientConnection.camera, but that only relates to the "Observer" object, and gives me no values. I tried putting this in PlayGui.updateControls():
Code:$zCameraRotation += -$mvYawLeftSpeed + $mvYawRightSpeed + $mvYaw;
|
|
But that gives incorrect results. So does anyone know how to find this? Thanks,
HiGuy
|
Definitely On-Topic MBP Coding ![[image] [image]](http://i.imgur.com/lqCvtpQ.png) |
|
Jeff Elite Marbler
     torqueScript maniac[ss:Default Skin] member is offline
MBP Leaderboard Moderator.
Joined: Nov 2010 Gender: Male  Posts: 1,559 Location: Kicking people from LBs...
|  | Re: Basic Marble Blast Coding Q&A « Reply #223 on Mar 27, 2011, 10:41am » | |
you may be able to find something in default.bind.cs
also, if anybody has startmissiongui.gui it would be great if you could send it too me.
|
|
|
Hi Guy Expert Marbler
    TorqueScript Hacking Maniac[ss:Blue Groove (MF)] member is offline
![[avatar] [avatar]](http://higuysmb.heliohost.org/images/spec/nope.gif)
If you can see my avatar, then my server is still functioning.
Joined: Mar 2008 Gender: Male  Posts: 610 Location: Both nowhere and everywhere...
|  | Re: Basic Marble Blast Coding Q&A « Reply #224 on Mar 28, 2011, 1:55am » | |
SMG.gui? PM Matan.
|
Definitely On-Topic MBP Coding ![[image] [image]](http://i.imgur.com/lqCvtpQ.png) |
|
Jeff Elite Marbler
     torqueScript maniac[ss:Default Skin] member is offline
MBP Leaderboard Moderator.
Joined: Nov 2010 Gender: Male  Posts: 1,559 Location: Kicking people from LBs...
|  | Re: Basic Marble Blast Coding Q&A « Reply #225 on Mar 28, 2011, 2:23am » | |
i actually have it already 
i need joinservergui.gui
matan, plz
|
|
|
dobrakmato Advanced Marbler
   C# Code master[ss:Default Skin] member is offline
![[avatar] [avatar]](http://img339.imageshack.us/img339/5932/logowot.png)
Are you a XNA developer? Contact me!
![[homepage] [homepage]](http://images.proboards.com/new/buttons/www_sm.png) Joined: Aug 2010 Gender: Male  Posts: 314 Location: Teraz uvidíme kto to prečíta..
|  | Re: Basic Marble Blast Coding Q&A « Reply #226 on Apr 12, 2011, 4:14am » | |
In which file(or function) is starting local game (i mean creating defaultmarble shape)?
|
Just an another signature ._____________________.
|
|
Jeff Elite Marbler
     torqueScript maniac[ss:Default Skin] member is offline
MBP Leaderboard Moderator.
Joined: Nov 2010 Gender: Male  Posts: 1,559 Location: Kicking people from LBs...
|  | Re: Basic Marble Blast Coding Q&A « Reply #227 on Apr 12, 2011, 6:12am » | |
game.cs
marble/server/scripts
|
|
|
dobrakmato Advanced Marbler
   C# Code master[ss:Default Skin] member is offline
![[avatar] [avatar]](http://img339.imageshack.us/img339/5932/logowot.png)
Are you a XNA developer? Contact me!
![[homepage] [homepage]](http://images.proboards.com/new/buttons/www_sm.png) Joined: Aug 2010 Gender: Male  Posts: 314 Location: Teraz uvidíme kto to prečíta..
|  | Re: Basic Marble Blast Coding Q&A « Reply #228 on Apr 13, 2011, 3:23am » | |
Thanks i found it.. I have another question abou Gui element. It will work if i make this code Code://--- OBJECT WRITE BEGIN --- new GuiChunkedBitmapCtrl(MarbleChooseGui) { profile = "GuiContentProfile"; horizSizing = "width"; vertSizing = "height"; position = "0 0"; extent = "640 480"; minExtent = "8 8"; visible = "1"; helpTag = "0"; bitmap = "./background.jpg"; useVariable = "0"; tile = "0";
new GuiControl() { profile = "GuiWindowProfile"; horizSizing = "center"; vertSizing = "center"; position = "65 126"; extent = "510 228"; minExtent = "8 8"; visible = "1"; helpTag = "0";
new GuiObjectView(ballobject) { profile = "GuiDefaultProfile"; horizSizing = "right"; vertSizing = "bottom"; position = "13 19"; extent = "140 132"; minExtent = "8 8"; visible = "1"; helpTag = "0"; cameraZRot = "0"; forceFOV = "0"; model = "~/data/shapes/balls/Marble_1.dts"; skin = "base"; cameraRotX = "0.25"; cameraZRotSpeed = "0.001"; orbitDistance = "0.5"; autoSize = "0"; }; }; };
//--- OBJECT WRITE END ---
function ballobject::onClick() { //anything cool... }
|
|
?
Or if not how to make code for click on object?
|
Just an another signature ._____________________.
|
|
Jeff Elite Marbler
     torqueScript maniac[ss:Default Skin] member is offline
MBP Leaderboard Moderator.
Joined: Nov 2010 Gender: Male  Posts: 1,559 Location: Kicking people from LBs...
|  | Re: Basic Marble Blast Coding Q&A « Reply #229 on Apr 13, 2011, 5:23am » | |
i am not sure for object. (higuy, seiz, matan, anybody) you can do that for a bitmap image though. It may be onUse though, I am not sure.
|
|
|
Hi Guy Expert Marbler
    TorqueScript Hacking Maniac[ss:Blue Groove (MF)] member is offline
![[avatar] [avatar]](http://higuysmb.heliohost.org/images/spec/nope.gif)
If you can see my avatar, then my server is still functioning.
Joined: Mar 2008 Gender: Male  Posts: 610 Location: Both nowhere and everywhere...
|  | Re: Basic Marble Blast Coding Q&A « Reply #230 on Apr 13, 2011, 10:31am » | |
Have a GuiButtonBaseCtrl over the GuiObjectView, and use that for calling methods.
|
Definitely On-Topic MBP Coding ![[image] [image]](http://i.imgur.com/lqCvtpQ.png) |
|
RDs.empire Respected Marbler
     Silent 3D artist[ss:Phil'sEmpire Skin] member is offline
![[avatar] [avatar]](http://imgur.com/08pGa.png)
We shal RULE the universe once we figure out what is one...
![[msn] [msn]](http://images.proboards.com/new/msn.png)
Joined: Oct 2009 Gender: Male  Posts: 1,200 Location: Under your bed
|  | Re: Basic Marble Blast Coding Q&A « Reply #231 on Apr 20, 2011, 2:17pm » | |
I have been working on animated startpads but i have one huge problem. I enter level. Animation starts then stops and after i went OBB it isnt reseting and moving again. Target is to tell pad to reset animation after going OBB. This is Pads.cs that i use now for animation http://localhostr.com/download/B59Qitj/pads.cs But i dont know how to code it so it resets after going OBB or restarting level. In blender dts exporter i exported animation as normal that runs one time. I also need to make pads.cs so that animation starts when you enter EndPad.
|
Playing arround blender render... Soon... ![[image] [image]](http://i.imgur.com/qPSVT.png) |
|
dobrakmato Advanced Marbler
   C# Code master[ss:Default Skin] member is offline
![[avatar] [avatar]](http://img339.imageshack.us/img339/5932/logowot.png)
Are you a XNA developer? Contact me!
![[homepage] [homepage]](http://images.proboards.com/new/buttons/www_sm.png) Joined: Aug 2010 Gender: Male  Posts: 314 Location: Teraz uvidíme kto to prečíta..
|  | Re: Basic Marble Blast Coding Q&A « Reply #232 on Apr 20, 2011, 7:17pm » | |
Maybe this works :
//-----------------------------------------------------------------------------
function GameConnection::onOutOfBounds(%this) { if ($Game::State $= "End") return;
// Reset the player back to the last checkpoint PlayGui.setMessage("outOfBounds",2000); %this.play2d(OutOfBoundsVoiceSfx); %this.player.setOOB(true); %this.player.startpad.playThread(0,"pad"); if(!isEventPending(%this.respawnSchedule)) %this.respawnSchedule = %this.schedule(2500, respawnPlayer); }
this is from game.cs.
|
Just an another signature ._____________________.
|
|
RDs.empire Respected Marbler
     Silent 3D artist[ss:Phil'sEmpire Skin] member is offline
![[avatar] [avatar]](http://imgur.com/08pGa.png)
We shal RULE the universe once we figure out what is one...
![[msn] [msn]](http://images.proboards.com/new/msn.png)
Joined: Oct 2009 Gender: Male  Posts: 1,200 Location: Under your bed
|  | Re: Basic Marble Blast Coding Q&A « Reply #233 on Apr 21, 2011, 2:57am » | |
dont know if i instaled it incorectly but it didnt worked. Can you send me game.cs in MBR proboards please?
|
Playing arround blender render... Soon... ![[image] [image]](http://i.imgur.com/qPSVT.png) |
|
dobrakmato Advanced Marbler
   C# Code master[ss:Default Skin] member is offline
![[avatar] [avatar]](http://img339.imageshack.us/img339/5932/logowot.png)
Are you a XNA developer? Contact me!
![[homepage] [homepage]](http://images.proboards.com/new/buttons/www_sm.png) Joined: Aug 2010 Gender: Male  Posts: 314 Location: Teraz uvidíme kto to prečíta..
|  | Re: Basic Marble Blast Coding Q&A « Reply #234 on Apr 21, 2011, 4:00am » | |
RDs.empire: I posted game.cs on MBR forums. Go for it.
|
Just an another signature ._____________________.
|
|
NaCl586 Professional Marbler
   Searching Stolen Seven Gems[ss:Phil'sEmpire Skin] member is offline
![[avatar] [avatar]](http://i417.photobucket.com/albums/pp255/thelabarry/link_loz_triforce.gif)
MBElite Level and Skybox Designer
![[msn] [msn]](http://images.proboards.com/new/msn.png)
Joined: Jul 2010 Gender: Female  Posts: 485 Location: Depends where I am now
|  | Re: Basic Marble Blast Coding Q&A « Reply #235 on Apr 30, 2011, 11:10am » | |
BUMP! (i don't think this is bump) I have few question 1.How to create new powerup 2.Where the powerup script go
thanks
~NaCl586 10%Warn
|
2.05, 2.63, 7.47 7s count : 51 ~NaCl586~ |
|
Jeff Elite Marbler
     torqueScript maniac[ss:Default Skin] member is offline
MBP Leaderboard Moderator.
Joined: Nov 2010 Gender: Male  Posts: 1,559 Location: Kicking people from LBs...
|  | Re: Basic Marble Blast Coding Q&A « Reply #236 on Apr 30, 2011, 12:22pm » | |
you need to look in powerups.cs. However, the game is hard coded so that u only can have 5 powerupids, which is the 5 powerups besides gravity modifier and time travel since they are onCollision specific. You would have to create custom codes like opal did (which I am not suppling to people nor does even 90% of the staff have the codes (its that secrete)). Then, you have to first decide what you want it to do, on collision effect is fine since u don't need a powerupid though, such as mbp's easter egg, you could have it as a powerupid = 0 or no such dynamic field of a powerupId. if you want to do an on collision effect, its this syntax:
function theitemname::onCollision(%this,%obj,%col) { then write your commands; }
|
|
|
NaCl586 Professional Marbler
   Searching Stolen Seven Gems[ss:Phil'sEmpire Skin] member is offline
![[avatar] [avatar]](http://i417.photobucket.com/albums/pp255/thelabarry/link_loz_triforce.gif)
MBElite Level and Skybox Designer
![[msn] [msn]](http://images.proboards.com/new/msn.png)
Joined: Jul 2010 Gender: Female  Posts: 485 Location: Depends where I am now
|  | Re: Basic Marble Blast Coding Q&A « Reply #237 on Apr 30, 2011, 12:37pm » | |
sorry , i mean inventory powerup like marble recoil and anti recoil
|
2.05, 2.63, 7.47 7s count : 51 ~NaCl586~ |
|
Jeff Elite Marbler
     torqueScript maniac[ss:Default Skin] member is offline
MBP Leaderboard Moderator.
Joined: Nov 2010 Gender: Male  Posts: 1,559 Location: Kicking people from LBs...
|  | Re: Basic Marble Blast Coding Q&A « Reply #238 on Apr 30, 2011, 12:56pm » | |
then you have to make custom scripts, i cant help you much farther, sorry.
|
|
|
whirligig Intermediate Marbler
  member is offline
Joined: Dec 2009 Gender: Male  Posts: 114
| |
|