Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 405707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T17:25:30+00:00 2026-05-12T17:25:30+00:00

What I am doing is very simple. I have a simple 2d Maze game

  • 0

What I am doing is very simple. I have a simple 2d Maze game – think puzzle game that I am working on. I am not needing to use OpenGL for this. I am wanting to use UIImage’s. Imagine I have a wall tile (64×64 pixels) and I want to write code to duplicated this wall tile along the top and edges of the screen area- to in effect build a wall around the edges of the screen. play will take place inside this area. How would I go about doing this in code. From what I gather I would need to create a new UIImage each time I wanted to place a tile and move coordinates. Later on though, say I wanted to take the second tile along and replace it with say a bomb. Or maybe the 4th one along? My question really is.. in code how would I address this 2nd or 4th tile (when the number 2 or 4 could be random) and change its graphic? I hope I have explained this enough.. Also If I have updated some tiles, is there a call I should be making to hurry up the screen refresh so to speak?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T17:25:31+00:00Added an answer on May 12, 2026 at 5:25 pm

    As I understand, you can just create some UIImageView objects. Each one for one of your tiles. And then you’ll be able to change frames with animation. For example. You have image you want to replace. I have no mac right now nearby, so, my code may not wark after just copy and paste)
    [UIView beginAnimations:nil context:nil];
    [UIView setAnimationDuration:0.5f];
    [imageView setFrame:newFrame];
    [UIView commitAnimations];

    This code will move your image with animation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this very simple control below. And on the page that i use
Hopefully this is a very simple question. I have a makefile pattern rule that
I have this very simple code or at least i think it's simple. //
I have a very simple application that use a 2 component UIPickerView that causes
I've not used C++ very much in the past, and have recently been doing
I have the following PHP code doing a very simple select into a table.
I have very simple select like this: SELECT * FROM table WHERE column1 IN
I have a very simple Android activity layout like this: <?xml version=1.0 encoding=utf-8?> <LinearLayout
I have a very simple Person class that has a ivar called name (
I have a very simple method scheduled to run every 10 seconds like this:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.