ResizeBillboard work?

Just starting out? Need help? Post your questions and find answers here.
User avatar
minimy
Enthusiast
Enthusiast
Posts: 688
Joined: Mon Jul 08, 2013 8:43 pm
Location: off world

ResizeBillboard work?

Post by minimy »

Hello, when try to resize a billboard give me this error 'error memory address'. Is a bug?

Code: Select all

    bb= CreateBillboardGroup(#PB_Any, MaterialID(mate),10,10)
    AddBillboard(bb,0,0,0)
    ResizeBillboard(0 , bb, 10,10) ; NO WORK (error memory address???)

// Moved from "Bugs - 3D Engine" to "Coding Questions" (Kiffi)
If translation=Error: reply="Sorry, Im Spanish": Endif
pjay
Enthusiast
Enthusiast
Posts: 277
Joined: Thu Mar 30, 2006 11:14 am

Re: ResizeBillboard work?

Post by pjay »

I think it's a bug with your code.

According to the documentation, AddBillboard() returns an ID that you should use for any adjustment operations, such as ResizeBillboard().

Code: Select all

bb = CreateBillboardGroup(#PB_Any, MaterialID(0),10,10)
myBillboard =  AddBillboard(bb,0,0,0)
ResizeBillboard(myBillboard , bb, 10,10) 
Post Reply