ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperCube > Programming and Scripting
forum topic indicator Follow Main Character On Scene Map Script (Map Script)
person icon
techno-valley
Registered User
Quote
2016-05-23 02:58:48

Inspired by jaimezegpi radar script, I've just developed a new script to let the player follow the main character.

I've attached an example to know how to use.

I'll post a detailed explanation for the script concept tomorrow or after tomorrow at maximum.

Here are the download link for the script:

http://www.techno-valley.com/amb...

And here is the The example .ccb file

http://www.techno-valley.com/amb...

person icon
niko
Moderator
Quote
2016-05-23 04:47:05

Nice, thanks!

person icon
just_in_case
Moderator
Quote
2016-05-23 05:46:27

Download link is not working for me...????

person icon
techno-valley
Registered User
Quote
2016-05-23 08:56:29

Sorry,

I've fixed the download link

person icon
just_in_case
Moderator
Quote
2016-05-23 10:41:58

Yo!!! Nice work... @techno-valleyemoji icon_smile

It will be more awesome if we can limit the movement to map...

As everybody can notice if the player moves far away from the plane mesh you have used in ur example...

We ca see the map character will leave the red map area and starts moving on the game screen...

If you can somehow limit the map character to map area only...

person icon
techno-valley
Registered User
Quote
2016-05-23 12:26:39

emoji icon_smile

I'm glad you like the script.

Regarding the limitation for the character position on map can be done using few if conditions (will check it later tonight)

But, usually this is always done within the scene so you add a fence around the scene (either visible or non-visible) and this will automatically block the character from going outside the on-screen map. emoji icon_blink

person icon
just_in_case
Moderator
Quote
2016-05-23 13:18:14

Ummm ... or is it posible to create a gtaike radar..

person icon
techno-valley
Registered User
Quote
2016-05-23 13:55:46

A little bit complicated emoji icon_grin

You mean a zoom on a specific area and moving in parallel to the main character movements ?

this will depend on the scene width and height it will be changeable.

BTW, I've just seen your GTA game like demo :) very nice screens and the game play is not bad however, the melee weapons and fight still need some improvement I guess but any way a nice trial .. very good job for doing it :)

the link below is very useful
http://gta.wikia.com/wiki/Radar

person icon
just_in_case
Moderator
Quote
2016-05-23 14:55:20

I want to show the whole vice city map.with 20x20 radar width and 200x200 screen width.... and you can.say that I.want to.move the character on a 3d ball.with gta map on it...

person icon
jaimezegpi
Registered User
Quote
2016-05-23 18:32:24

techno-valley NIIIIIIICE Behavior...!! thanks for share
mmm... GTA Map.... sound intresting.... sound like matrix maths..

person icon
techno-valley
Registered User
Quote
2016-05-24 09:32:59

@jaimezegpi

Thanks emoji icon_smile

@just_in_case

I didn't have time to modify the script yet.

I'm posting a screenshot for letters kingdom game with the map and I'm still figuring out some problems in the script.

I'll get back to you soon.

embedded external image
🔎︎


as you can see the map is at the left bottom of the screen.

To have an image for your scene just add a new camera perpendicular on your scene and run your game and have a screen shot modify and add to your scene as explained in the script.

person icon
techno-valley
Registered User
Quote
2016-08-11 00:55:05

I've just created a small doc explaining how the script works

Welcome of course for any enhancements and idea for the script and the doc as well.

http://www.techno-valley.com/Cha...

person icon
techno-valley
Registered User
Quote
2016-11-24 23:51:38

I'm wondering if someone has tested this behaviour.

Also if Niko or our programmer gurus can enhance it for future :)

person icon
User
Guest
Quote
2016-12-14 19:49:03

When i try to add a minimap image, it says me: could not open file of texture. How to write correct path?

person icon
techno-valley
Registered User
Quote
2016-12-16 12:39:37

Hello User,

If you checked the attached PDF, you may have found the line below.


ccbDrawTextureRectangleWithAlpha ("map-new.png", radar_left, radar_top, radar_width, screen_height);


In this example you put the map file here named map-new.png in the same location as the .ccb

in order to use a full path for example you can replace the filename with the full path

C:\\Paht\\to\\mapfile\\map-file.png

where the path is actually C:\Path\to\mapfile Folder and the file name is map-file.png

you can also use any other supported extension of course


Create reply:










 

  

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


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






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