Quantcast
Channel: Cocos Forums - Latest topics
Viewing all 17117 articles
Browse latest View live

New Cocos2d-x Tutorials From Sonar Systems


Don't Worry - Single Screen Physics Arcade Game [HTML5]

$
0
0

@Karg wrote:

Fill the screen with smilies, avoid the angry ones, beat 15 increasingly difficult levels.

Made with Cocos Creator.

Enjoy!

dont-worry-piron-games-screenshot-003

Posts: 2

Participants: 2

Read full topic

Why Click event does not respond

$
0
0

@82140e533befeeb4d64b wrote:

auto bb = cocos2d::ui::ImageView::create("xxx.png", Widget::TextureResType::LOCAL);
	bb->setPosition(VisibleRect::center());
	bb->addTouchEventListener(CC_CALLBACK_2(HelloWorld::touchEvent, this));
	this->addChild(bb);

void HelloWorld::touchEvent(Ref *pSender, Widget::TouchEventType type)
{
	switch (type)
	{
	case Widget::TouchEventType::BEGAN:
		break;
	case Widget::TouchEventType::MOVED:
		break;
	case Widget::TouchEventType::ENDED:
	{
	}
	break;
	case Widget::TouchEventType::CANCELED:
		break;
	default:
		break;
	}
}

When I click the button, The event does not respond.
In HelloWorldScene demo with 3.17.1 cocos2d-x C++.

Posts: 8

Participants: 2

Read full topic

Packt Publishing $10 special (April 18, 2019 - April 30, 2019)

Prefab asset `readonly` property

$
0
0

@Postelzhuk wrote:

What is the purpose of readonly property in the prefab asset?
This property can’t be checked and locked to false value always.
da92c6fa76312f67c8fd9bf1371fb8a6%20(1)

Posts: 1

Participants: 1

Read full topic

Failed make cocos2d-x Ubuntu 18.04

$
0
0

@doyoque wrote:

Hello cocos people.
Last year I’m installed cocos2d-x with .zip file from website (version 3.^) on ubuntu 18.04, follow the tutorial from documentation for linux-build, and success.

And now after my laptop got reset and installed new ubuntu 18.04 the make is failed with error like this.
Screenshot%20from%202019-04-11%2013-13-38

I’ve tried from github repository and cocos zip but still error.

Posts: 7

Participants: 2

Read full topic

What should Cocos2d-x v4 be?

$
0
0

@slackmoehrle wrote:

@walzer if working on deciding what v4.0 will be. Let’s help him!

So far:

  1. For sure metal support
  2. Solid 3D renderer, new 3D features and a new 3D editor

What are your thoughts on these item?

  • Should we merge GitHub.com/cocos-creator/cocos2d-x-lite to cocos2d-x v4, and publish with the Cocos Creator editor support?

  • Could we focus JavaScript & TypeScript only, and abandon C++ & Lua API?

  • Should we promote the totally rewritten 3D framework in v4?

Posts: 2

Participants: 1

Read full topic

How does the sprite move in a curve?

$
0
0

@blackcat99 wrote:

d%C4%83
How does the sprite move in a curve ??
How does the sprite move in a curve, how can I do with moveto or moveby?

Posts: 3

Participants: 2

Read full topic


i want batching for Label TTF type

$
0
0

@jeunkim wrote:

I know how to batch BMFONT. However, BMFONT can not use many letters. Using TTF will cause too many draw calls to be used. Is there a way to batch TTF in version 3.17?

Posts: 1

Participants: 1

Read full topic

Custom Inspector heritage

$
0
0

@arcticmicho wrote:

Hi!

I’m trying to create a custom Inspector for one of my Components. After sometime I was able to build a simple Inspector for what I need. Basically I have a base component who, other components extends from. The idea is to create a custom inspector to this base component, so all the other components who extend from this base component would have it too.
The issue is that, for some reason all the components who extends from the base component are not rendering the custom inspector, they are just rendering the properties defined in the base component (default behavior when no custom inspector is referenced) along with their own properties .
I would like to replicate the behavior that, for example, the cc.Sprite component has. When you create a component who extends from cc.Sprite, the component will render all the defined properties and also will render all the cc.Sprites properties using the cc.Sprite’s custom inspector.

Kind regards!

Posts: 1

Participants: 1

Read full topic

Cocos creator v2.0.9 3D projection

$
0
0

@nokito wrote:

Hello,

I’m trying to do a 3D projection of a sprite and label. Is it possible using cocos creator v2.0.9?
I saw I can modify Skew on nodes but it does not give the effect I want. I’m searching something like the projection of pixijs in this demo.

Posts: 1

Participants: 1

Read full topic

The new Cocos Website is here!

$
0
0

@slackmoehrle wrote:

It has taken the team a lot of hard work and dedication, but the new Cocos Website is finally here. Please join me in thanking the entire team for bringing the Cocos brand into it’s next stage of life.

Just a few housekeeping items:

  1. Cocos2d-x.org will start redirecting to the new Cocos Website
  2. these forums will remain here and__NOT__ be changed.
  3. We will be experimenting with some fonts to make our websites easier to read. Let us know what you think as we experiment.

Screenshot%20from%202019-04-18%2006-38-35

Posts: 2

Participants: 1

Read full topic

Storing game data

MouseClick on Sprite, not on transparent pixel

$
0
0

@Darooooon wrote:

Hi, I’m working on animating when mouse clicks sprite.

I used BoundingBox and it works well, but when I click on transparent area on Sprite’s image it also works well. That’s the problem.

I used TexturePacker to extract plist file of Sprite with polygon algorithm and polygon outline. So the extracted plist file has vertices and verticesUV values.

Is there a Cocos library that automatically (like create sprite with plist file) build polygon intersection or polygon collision using plist file?

Or should build own library?

Thanks.

Posts: 1

Participants: 1

Read full topic

Developer Interview: The Super Mega Space Game! Dev Team


Developer Interview: AntiSocial Games

Developer Interview: Rivers Games

Developer Interview: we.R.play the team behind Explottens!

Cocos2d-x ui collection view?

$
0
0

@kerryk wrote:

I have a ui::ListView.

On iphone i show 1 item per row. All works perfect.
On ipad portrait, i would like to use 2 items per row.
On ipad landscape, i would like to use 3 items per row.

Does cocos2d-x have a ui element similar to a ios native collection view? So i can set number of columns based on my case in realtime? E.g. if there is rotation on ipad, i will change columnds from 3 to 2 and everything will auto-layout.

If there is no collection view, which is the fastest element i can use to achieve this except using ui::scrollview and implementing everything.

Thanks in advance.

Posts: 1

Participants: 1

Read full topic

Open platform File Explorer

$
0
0

@dogwalker wrote:

I’ve recently discovered the RichText component, which is fantastic (I’ve been using Label and BMFont everywhere) when I want more flexibility, and I just now realized I can actually open URLs with it (very cool!).

What I’d love to be able to do is open the platform’s File Explorer (Windows File Explorer, Mac Finder, and if possible, access to iOS Files). I’ve tried creating a url with “file://” but that doesn’t work. Any suggestions?

Thanks!

Posts: 1

Participants: 1

Read full topic

Viewing all 17117 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>