How to move the sprite(vehicles ) on slope image in cocos2d - objective-c

I m developing one game in cocos2d but i have one doubt, in this game i have one background and above that i want to add one slope image and i want to move the sprite(vehicles) on that slope randomly just like this game i m giving the link of one game, please suggest me how i can implement just like this video, I also want to make the game just like this.
http://www.youtube.com/watch?v=yMJFRd3bBhw
Thanks in advance,

One option is using a path and make the sprites follow that path, define that path for each terrain. Another option is using a physics engine, you can do that using the engine itself (i think).

Related

How can I modify the Lyra camera to make a Top Down game in UE5?

I'm trying to make a Battlerite like game. Lyra comes with CM_ArenaFramingCamera which produces a fixed camera that doesn't track the player. I don't really understand how this is achieved, and I'm not sure how I could modify it to follow the player. Where would something like that happen and how would it play into the Ability system?
I've also tried looking at the CM_ThirdPerson camera to modify it to function as a top down camera. I understand how to change the curves to position the camera, but there's a lot of weird behavior associated with this and I'm unclear of how to fix the rotation.
I'd appreciate anybody that has a deep dive on using the Lyra system to modify and create custom cameras!
To get the same effect as the SpringArmComponent what I basically dis was to create a new class inheriting from ULyraCameraMode and copy paste all the methods from SpringArmComponent. The tick component I replaced it with the method ULyraCameraMode::UpdateView. The most important modification you have to do is inside the method UpdateDesiredArmLocation(), here at very end of all the calculations just set.
View.Location = ResultLoc;
View.Rotation = DesiredRot;

VB.net Tile Graphics Drawing - Isometric

I am working on just a small game in Vb.net (I know this is not a great place to make a game but I'm just doing a little project). I have a project set up where I am trying to make an isometric tile map. To make it easier on myself, I wanted to get all the locations set first, so I took picture boxes and found the exact locations for where I want to draw each tile. Now what I would like to do is draw an image at each location and I'm not sure how to go about this.
(something like, for each picturebox.location draw graphics.tile1????)
thank you!

Implementing a 3D Minimap for VR in Unreal Engine

I am working on a VR tower defense game. I want to place my towers on a small map of the field and at the same time show the field/units/towers on the small map, in 3D. Like this:
http://halo.bungie.net/images/games/Halo3ODST/imagery/screenshots/H3ODST_PreparetoDropCinematic.jpg
The map would be something like a small clone of the field. Is there a way to do so with camera etc. So that my minimap is just a re-render/clone of the field.
Sorry if this is the wrong place, but the Unreal Engine Forum is not working at the moment.
I dont know of a simple camera projection to 3D (since the camera map would be about scene capture onto 2D textures)
You can do a fake/tricky camera implementation tho. You just show a normal camera projection and put it into the world. Now you let the actual camera position depend on where the users location is in relation to the map.
You can cover this up with particle effects so it doesnt look like some TV that is following you....
depending on the complexity of your game and how u like the solution obove it might be better to implement a calculated model.
Like you have miniature models of everything u want to show on the map and then let a map class project every "object that is shown on map" the miniature version onto the map object.
Ofc this requires tons of work compared to just setting up a camera but you have alot of better control of how the map looks and what it can do (u could add functionallity, control options and special views etc....)

Unity automatically rotate camera on slopes up/down

I have a Player in first person walking around on Unity terrain and I'd like to restrict the camera controls to the y axis (left/right) and automate the camera rotation of the x axis.
So looking up/down should require no player input, depending on wether you walk up a slope or down.
I'm not quite sure what to look for. You could probably do it with a Raycast, but I suppose there's an easier way?
There are a few built in camera scripts. you need to import that standard assets that unity has. And there are a few different ones that you could modify, but they do follow the player very well.

i want to show road effect in cocos2D based game (like a bike is moving on road) iphone

i am unable to show road effect in cocos2D based game and also little bit confused about image. what type of image i have to use to show effect and how i can use this image in code to generate moving road effect.
Actually You need to move the background back in different layers or you can use parrallax node .
Here is a link for the by source code steffen ittereheim which describes in detail the process